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

url relative path ../ not works for cross domain link import #955

Closed
zhangzhimin opened this issue Nov 22, 2014 · 1 comment
Closed

url relative path ../ not works for cross domain link import #955

zhangzhimin opened this issue Nov 22, 2014 · 1 comment

Comments

@zhangzhimin
Copy link

I make a website a.mydomain.com, I import header.html polymer element from b.mydomain.com/public/ui.
In the header.html I import d3.js by relative path include ../components/d3/d3.js , but it not works, I get "b.mydomain.com/public/ui/components/d3/d3.js" instead of expected "b.mydomain.com/public/components/d3/d3.js", so the relative path "../" not work.
in fact, "./" and the absolute path works well,
only "../" not works in cross domain get.

@zhangzhimin
Copy link
Author

../../ not work, but ../ work well, my faults

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

1 participant