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

image urls relative to page not js #193

Open
oppianmatt opened this issue Jul 30, 2015 · 1 comment
Open

image urls relative to page not js #193

oppianmatt opened this issue Jul 30, 2015 · 1 comment

Comments

@oppianmatt
Copy link

I've tried it out on a css file containing links to images, but it seems the images try to get loaded relative to the current page and not the js file it loads from.

For example

style.css contains link to image.png. You embed and put in file.js with the r.js optimizer. Now you access www.example.com/foo/bar which loads up the file.js from media.example.com/file.js

The request for image.png is going to www.example.com/foo/image.png and not media.example.com/image.png which is where file.js (and all the other statics) are hosted.

@geromueller
Copy link

Hi,

i have the same issues. Are there any solutions?

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

2 participants