I defined the element in index.html to demonstrate the working version.I am confused as to why you would say that #bad is doing the right thing. Clicking that link will take you to that element as a new page in the browser. When should updating the hash via a href take you to a new page?
On Monday, May 19, 2014 9:42:32 AM UTC-7, Rob Dodson wrote:[+ dfreedm]
On Mon, May 19, 2014 at 9:39 AM, Rob Dodson <robd...@google.com> wrote:Hm that's weird. You can remove the element defined in index.html because it doesn't do anything. It seems like the real problem is that hash links inside of a repeating template inside of an imported element do the right thing. And links outside a repeating template in an imported element do the wrong thing.
On Sunday, May 18, 2014 3:40:14 PM UTC-7, Justin Merz wrote:Not sure if this is a bug or I am missing something, but I have put together to following test. https://github.com/jrmerz/polymer-hash-test/blob/master/public/index.html, sorry I didn't use jsbin, not sure how use it with imports for this example. The anchor tag works fine in the element defined in index.html. But if you look at test-two https://github.com/jrmerz/polymer-hash-test/blob/master/public/test-two.html you will see the anchor tags work great in the <template repeat="">...</template> but the <a href="#bad">Bad Hash Link</a> is turned into <a href="test-two.html#bad">Bad Hash Link</a>. Thoughts, ideas, suggestions?-Thanks
Justin
Follow Polymer on Google+: plus.google.com/107187849809354688692To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/18e77b02-fa90-4d6a-8e01-53a68eddff0e%40googlegroups.com.
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
I still have to use method calls to update the hash. Can we file a ticket somewhere?
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAL0om6Z3P2saYm06jj1GQtzUb4G_q-Xyfa5W47LObO-q89qtDA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAJj5OwCSwL_sY2rS7OD9RUM41o6rtR2kGs1N5bNw4v%2BW7Du9Mg%40mail.gmail.com.