You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I display an image with the Photoswipe UI, it appends a &gid=x&pid=x query string to the URL. This causes UI Router to see it as a different URL than the base URL of the page as defined in that URL's .state, causing it to immediately redirect to the URL defined in $urlRouterProvider.otherwise().
I can turn this off with Photoswipe's history option, but is there any way to keep the gid&pid history while using this with UI Router?
The text was updated successfully, but these errors were encountered:
Hi @rhclayto, I use the history option to avoid this behavior because I don't need history right now, but we definitely need a different solution.
I'll spend some time on this later to see what can be done, in the mean time we can keep this open to discuss about it
There are a few attempted solutions there. I tried the simple one of using reloadOnSearch: false in the $state configuration, & it allowed Photoswipe to change the URL without UI Router trying to change the state; however, using that URL as a bookmark for example isn't useful because using the URL with the parameters doesn't actually activate Photoswipe, you just get the base view that Photoswipe is part of.
When I display an image with the Photoswipe UI, it appends a &gid=x&pid=x query string to the URL. This causes UI Router to see it as a different URL than the base URL of the page as defined in that URL's .state, causing it to immediately redirect to the URL defined in $urlRouterProvider.otherwise().
I can turn this off with Photoswipe's history option, but is there any way to keep the gid&pid history while using this with UI Router?
The text was updated successfully, but these errors were encountered: