Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

RouteState does not change on popstate #6014

Open
1 task done
SRYVPRASAD opened this issue Jan 19, 2024 · 0 comments
Open
1 task done

RouteState does not change on popstate #6014

SRYVPRASAD opened this issue Jan 19, 2024 · 0 comments
Labels
triage Issues to be categorized by the team

Comments

@SRYVPRASAD
Copy link

SRYVPRASAD commented Jan 19, 2024

馃悰 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/

  1. select the facets (example: brand )
    output URL: bimcontent-develop.netlify.app/content/?_brand=selectedBrand

  2. Then navigate to one of the products listed
    Output: The page is changed and URL as well

  3. 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

https://stackblitz.com/edit/github-2qf3td-1v3tby?file=README.md,src%2Fapp%2Fsearch%2Fsearch.component.ts

馃挱 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
@SRYVPRASAD SRYVPRASAD added the triage Issues to be categorized by the team label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues to be categorized by the team
Projects
None yet
Development

No branches or pull requests

1 participant