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’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

Open
plugware opened this issue Apr 12, 2024 · 1 comment
Labels

Comments

@plugware
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant