-
Notifications
You must be signed in to change notification settings - Fork 83
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
anchor links #10
Comments
I think this is related to HTML imports and the way they wrote the spec. Every relative path ( These are example links from a page imported from
I think Alternatively, if you can get your static content server to always return I hope this helps get you in the right direction. I should probably write up some documentation with a good set of examples and put it on the gh-pages. |
Look at this though: All i did was extend the data binding page with 2 links.
|
here are some simple tests showing something is wrong i think. a href="#/anchor1" target="_self" resolves to: a href="#anchor1" target="_self" resolves to: Which should load, but does not because of the other issue where it tries to load but gets a platform.js. Something is not right in terms of full page loading maybe |
I think I see what's happening. This is going to be a tricky situation for all custom elements, not just this router. It's actually linking the browser to directly load the custom element. For example, load http://127.0.0.1:49399/pages/data-binding-page.html, then view the source. The browser is loading a custom element, not a displayable HTML page. I think this means hash anchors like |
I thought something was fishy. if you can work on that, i will work on the hugo integration. Contact details: On 1 August 2014 16:32, Erik Ringsmuth notifications@github.com wrote:
|
It would be great if you add more examples of all these corner cases to the Sub pages that load up everything.
|
Yeah, I'll work on a write-up this weekend. I should probably also make a small demo site that can be downloaded as a ZIP. I could make it simpler than the gh-pages site since I wouldn't have to worry about relative paths and that |
Thanks. I will try it on monday
|
I started a document here http://erikringsmuth.github.io/app-router/#/notes. I also started an repo for app-router examples https://github.com/erikringsmuth/app-router-examples. I'm planning on adding multiple examples in here. The current one shows routing with hash paths |
I added a second example with full page load routing. https://github.com/erikringsmuth/app-router-examples There's definitely an issue, because a link like |
Found some more info, it looks like this might be a bug with Polymer of the platform polyfill. https://groups.google.com/forum/#!topic/polymer-dev/JcBQZCPamcY |
I would not be surprised !! I had allot of polymer cross browser issues today. Its kind of scary moving target still. I ended up now Will start using core elements and more advanced polymer next time after
|
because everything is evaluated client side some things are different
in the data-binding-page.html page if i add an in page anchor it self evaluates incorrectly by the browser engine to : http://127.0.0.1:49399/pages/data-binding-page.html#anchor1
Here is the html in the page.
Anchor link
Anchor text
How to tell polymer to evaluate the path at runtime properly ???
The text was updated successfully, but these errors were encountered: