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

Iron-location prevents native hash navigation #62

Open
2 of 8 tasks
TimvdLippe opened this issue Jan 1, 2017 · 1 comment
Open
2 of 8 tasks

Iron-location prevents native hash navigation #62

TimvdLippe opened this issue Jan 1, 2017 · 1 comment

Comments

@TimvdLippe
Copy link

Description

Hashes can be used to point to a section with the corresponding id. E.g. if you go to mydomain.com#foo and there is a <section id="foo"> then the browser automatically scrolls to that section.

Adding app-location (and consecutively iron-location) prevents this navigation from happening.

Expected outcome

Changes to only the hash should not be intercepted.

Actual outcome

Changing the hash does not let the browser scroll to the corresponding section

Live Demo

https://jsbin.com/savejohumi/1/edit?html,console,output

Steps to reproduce

  1. Click on the link Go to Foo4
  2. Observe that the scrollbar is not altered
  3. Comment out the declaration of <iron-location>
  4. Refresh the jsbin
  5. Click on the link Go to Foo4
  6. Observe that the scrollbar is altered to the correct section

Browsers Affected

Probably all, but could verify in these browsers

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@e111077 e111077 assigned e111077 and unassigned e111077 Jan 13, 2017
@timcharper
Copy link

I cannot reproduce this on the latest firefox. In your jsbin demo, the link works as expected.

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

3 participants