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

Closed
opened 2021-05-10 12:32:00 -05:00 by alekssskirov · 1 comment
alekssskirov commented 2021-05-10 12:32:00 -05:00 (Migrated from github.com)

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

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 2021-05-11 12:09:02 -05:00 (Migrated from github.com)

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

Solved, just photoswipe called history.back(); changed it to history.pushState( false, document.title,url) when closing; and Pjax stopped working
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#238