You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the fix for #1573 never merged into the 1.0 codebase.
The fix will be to set location: false for transitions that originate from a URL parse. location: false tells the transition NOT to update the location after the transition succeeds.
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 search2 ui-sref; query string is cleared.
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: