ui
ui copied to clipboard
Fancybox: Back Button - History issues
Describe the bug
I have found out that the History with Back button has an issue with gallery usage.
- If you open the fancybox from the image and you click the back button, you return back to the page.
- If you click again on the image and open the fancybox with (same/another) image and you click back -> you don't return back to the page, but it's going two steps in the history back.
Reproduction
- If you open the fancybox from the image and you click the back button, you return back to the page.
- If you click again on the image and open the fancybox with (same/another) image and you click back -> you don't return back to the page, but it's going two steps in the history back
![]()
(https://www.dropbox.com/scl/fi/yb58m9ktwyicj10oc5m0r/fancybox-issue.gif?rlkey=dmhy6pc5u4yi9kyu2lb6a6gcr)
Additional context
No response
Hi,
Thanks for your concern, but the Hash plugin that provides this functionality will be removed starting in the next major release because it is simply not possible to make it work perfectly.