-
Notifications
You must be signed in to change notification settings - Fork 970
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
Storefront listing plugin onpopstate event is triggered by anchor "jump" links #3665
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP Version
8.3
Shopware Version
6.5.8.8
Expected behaviour
Anchor links should not trigger the _onWindowPopstate() function
Actual behaviour
Ancor links get pushed to window.history and trigger the binded function on window.onpopstate.
How to reproduce
Create some anchor links in a cms section in a cms category layout with a product listing cms element or type
window.location.hash = '#test'
in your browser console.The text was updated successfully, but these errors were encountered: