Join GitHub today
Preserve query parameters on back button navigation #16744
Query parameters are not preserved when using back button.
Preserve any queryParams.
Steps to reproduce:
Two pages, One starts with an queryParam.
No, it's not a duplicate. This is not regarding the router's ActivatedRoute observables not firing when navigating...
referenced this issue
Dec 14, 2018
This is a serious blocker.
We've decided to use query URL parameters in PWA for a number of reasons (analytics, filters, etc.) and this bug breaks navigation.
Reproducible in 4.0.0 release.
CC @manucorporat as I see you are working on back button navigation & overlays.
Was experiencing the same problem on
Another related issue (not sure if there is an open one for it, but its related here) is that navigating directly to a url with a query string on ionic will trim off the query string. This can be reproduced by simply going to the ionic conference app and directly navigating to http://localhost:4200/app/tabs/schedule?test=ionic and it will trim off the query string before loading the page. Ideally the query string should remain as it would in a regular angular app.
Edit: interestingly enough, this other issue seems to only manifest when using tabs. If you go to the tutorial route, which does not use /app/tabs/ that one will keep the query string