Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Relative link goes to component instead to label. #11

Closed
clyfe opened this issue Oct 22, 2014 · 3 comments
Closed

Relative link goes to component instead to label. #11

clyfe opened this issue Oct 22, 2014 · 3 comments

Comments

@clyfe
Copy link

clyfe commented Oct 22, 2014

If I have a core item with a relative link inside it <a href="#about" target="_self"></a>, in a component, and I click the link, instead scrolling to the #about label in the current window I am sent to the containing component loaded as a html page.

This was ok in 0.4.2
Broken in master as of 9d71578

See gist: https://gist.github.com/clyfe/ba7c8638b192a21d48cb

@frankiefu
Copy link
Contributor

Don't need core-item, just <a> is enough to reproduce the issue. Looks like href is being rewritten to <a href="my-nav.html#about" target="_self"></a>

@KhoaVo
Copy link

KhoaVo commented Dec 16, 2014

Was there any update on this? It's pretty hard to use any hash based routing components with this bug laying around.

@ssorallen
Copy link

This is due to URL rewriting done in Polymer itself. The issue is being tracked in Polymer/polymer#651.

Closing this as a duplicate because core-item does not need to change.

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

No branches or pull requests

5 participants