ui icon indicating copy to clipboard operation
ui copied to clipboard

Fancybox: Back Button - History issues

Open elcheco opened this issue 11 months ago • 1 comments

Describe the bug

I have found out that the History with Back button has an issue with gallery usage.

  1. If you open the fancybox from the image and you click the back button, you return back to the page.
  2. 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

  1. If you open the fancybox from the image and you click the back button, you return back to the page.
  2. 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

Fancybox Back Button Issue

(https://www.dropbox.com/scl/fi/yb58m9ktwyicj10oc5m0r/fancybox-issue.gif?rlkey=dmhy6pc5u4yi9kyu2lb6a6gcr)

Additional context

No response

elcheco avatar Jan 27 '25 11:01 elcheco

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.

fancyapps avatar Jan 27 '25 12:01 fancyapps