-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Router 1.0.0 delete query parameters on reload #2730
Comments
Verified, this is a regression. Thanks for the bug report |
It looks like the fix for #1573 never merged into the 1.0 codebase. The fix will be to set In the plunker, click "add query param" then click "reload". The URL should not change because the transition originated from a url parse. Subsequent normal navigations (ui-sref, etc) will clobber the url, clearing the query string (this is how 0.2.18 works also). In the plunker, click "add query param" button, then the |
Thanks. Waiting for alpha 5. |
alpha.5 is out |
Thanks, it works just fine ! |
Hi,
Since 1.0.0, when I'm going to a state, adding an optional query parameter and reloading the page, the query parameter disappears.
Here is an example, running with ui-router 0.2.18.
window.location.hash
equals#/?foo=bar
$location.url()
equals/?foo=bar
When switching to v1.0.0-alpha.4 :
window.location.hash
equals#/?foo=bar
$location.url()
equals/
The text was updated successfully, but these errors were encountered: