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

Back button does not work with hash links in Firefox #218

Closed
jcoffland opened this issue Feb 5, 2015 · 1 comment
Closed

Back button does not work with hash links in Firefox #218

jcoffland opened this issue Feb 5, 2015 · 1 comment

Comments

@jcoffland
Copy link
Contributor

If you click a hash link (e.g. /home#something) Firefox's back button fails to work. Here is a fiddle that demonstrates the bug:

http://jsfiddle.net/oz97q94o/

Also, note that in the browser's history there are two entries for the hash link whereas a normal link only adds one entry to the history. I think this is why it fails to go back. When you hit the back button it removes one history entry but you still end up on the same page because of the double entry. Then page.js triggers another entry which puts you back to two again. So you can't go back.

FYI, I also tested this in Chrome and the back button works fine there.

jcoffland added a commit to jcoffland/page.js that referenced this issue Feb 5, 2015
A added a commit that referenced this issue Feb 5, 2015
Fix Firefox back on hash link issue #218.
@A
Copy link
Member

A commented Feb 16, 2015

I think, this issue should be closed

@A A closed this as completed Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants