MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.45k stars 124 forks source link

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

Open alekssskirov opened 3 years ago

alekssskirov commented 3 years ago

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 commented 3 years ago

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