pjax icon indicating copy to clipboard operation
pjax copied to clipboard

How to cancel Pjax triggers if in the url #

Open alekssskirov opened this issue 3 years ago • 1 comments

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 avatar May 10 '21 17:05 alekssskirov

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

alekssskirov avatar May 11 '21 17:05 alekssskirov