instantclick icon indicating copy to clipboard operation
instantclick copied to clipboard

If using relative path, images in target webpage is not loaded properly.

Open qutang opened this issue 8 years ago • 1 comments

If src of any image tags in the target webpage is relative (e.g. images/img.png instead of /webpage_path/images/img.png), it is not loaded correctly by instantclick. Browser console returns 404 on the image link. I think it's because the url used to fetch images is not updated. In other words, the images should be fetched based on target webpage's url.

This problem is solved using absolute path, but sometimes relative path is more convenient when the webpage url is generated automatically.

qutang avatar Nov 10 '17 18:11 qutang

UPDATE: My issue with css files is probably different than this issue. I realized instantclick.js doesn't reload anything inside the

tag, so if there is a new css file in the next page, it won't load it when preloading the that page.

I've had this same issue with some CSS files. My home page and main css is in the root, but when navigating from the home page to another page that is located one directory down, there is a css file that won't load. When I refresh the page, it loads as usual.

silasabbott avatar Jan 05 '18 19:01 silasabbott