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

How to cancel Pjax triggers if in the url # #238

Open
alekssskirov opened this issue May 10, 2021 · 1 comment
Open

How to cancel Pjax triggers if in the url # #238

alekssskirov opened this issue May 10, 2021 · 1 comment

Comments

@alekssskirov
Copy link

alekssskirov commented May 10, 2021

How to cancel Pjax triggers if a new c # url is passed to another JS pushState, and in some cases photoswipe passes “/#&gid=1&pid=1 " and Pjax is triggered

https://photoswipe.com/#&gid=1&pid=1

@alekssskirov alekssskirov changed the title # How to cancel Pjax triggers if in the url # May 10, 2021
@alekssskirov
Copy link
Author

Solved, just photoswipe called history.back(); changed it to history.pushState( false, document.title,url) when closing; and Pjax stopped working

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

No branches or pull requests

1 participant