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

path.js needs to handle absolute url paths #62

Closed
ebidel opened this issue Feb 7, 2013 · 0 comments
Closed

path.js needs to handle absolute url paths #62

ebidel opened this issue Feb 7, 2013 · 0 comments
Labels

Comments

@ebidel
Copy link
Contributor

ebidel commented Feb 7, 2013

Absolute urls are handled incorrectly. If a component contains:

<link rel="components" href="/static/libs/toolkit/src/g-component.html">

urlToPath() resolves the url to:

http://localhost/static/webcomponents/demos/components/my-components//static/libs/toolkit/src/g-component.html

So the xhr fails.

Note: the URL should be http://localhost/static/libs/toolkit/src/g-component.html

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

No branches or pull requests

2 participants