Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashtag problem with back button on browser #547

Closed
ALTELMA opened this issue Feb 7, 2017 · 2 comments
Closed

Hashtag problem with back button on browser #547

ALTELMA opened this issue Feb 7, 2017 · 2 comments
Labels

Comments

@ALTELMA
Copy link

ALTELMA commented Feb 7, 2017

Good work for new version of your plugin,
but I already seen new thing on url when open gallery.

Like this
"#lg=1&slide=1"

It's cause a problem when user try to click back button.
They still same page with "#lg=1&slide=0".

And If They slide more than 3 or 5 slide. They must click 5 times to get back previous page.
How do you think? It's bug or I should turn off this features?

Please suggest for me.
Cheers

@sachinchoolur
Copy link
Owner

Hi @ALTELMA,
I'll try to include the fix in the next release. when you click on the back button, if gallery id exists in the URL, the corresponding gallery will be opened.

If you don't want to use hash plugin you can simply remove it from your document or pass {hash: false} via settings

@sachinchoolur
Copy link
Owner

Hey @ALTELMA,

The issue has been fixed. From hash plugin v1.0.2 onwards, lightGallery does not create new history entries on URL hash change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants