Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fancybox: Back Button - History issues #722

@elcheco

Description

@elcheco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue has not been triaged by maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions