RouteState does not change on popstate
SRYVPRASAD opened this issue Β· comments
π Current behavior
RouteState does not change on popstate
- when the user navigates back using the browser back button the routestate does not change.
- So the URL is not changing. after the facets are used.
live demo: https://bimcontent-develop.netlify.app/content/
or
else try this demo
same code
https://stackblitz.com/edit/github-2qf3td-1v3tby?file=README.md,src%2Fapp%2Fsearch%2Fsearch.component.ts
Steps to reproduce
- nav to: search/
- and change the Categories.
π Steps to reproduce
https://bimcontent-develop.netlify.app/content/
-
select the facets (example: brand )
output URL: bimcontent-develop.netlify.app/content/?_brand=selectedBrand -
Then navigate to one of the products listed
Output: The page is changed and URL as well -
Now navigate back using the browser Back button and change the brand using facet.
-
If the user nav back URL: bimcontent-develop.netlify.app/content/?_brand=selectedBrand.
-
After changing the brand expected
Output URL: bimcontent-develop.netlify.app/content/?_brand=selectedBrand2 -
but the URL is the same, it doesn't work anymore.
Output URL: bimcontent-develop.netlify.app/content/?_brand=selectedBrand
Live reproduction
π Expected behavior
expected Output
- If the user navigates back using the browser back button.
- And changes the facets the URL should change accordingly.
Package version
"angular-instantsearch": "4.3.0",
Operating system
windos 10
Browser
google crome
Code of Conduct
- I agree to follow this project's Code of Conduct