MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.46k stars 125 forks source link

Images fails to load because relative path is changed too late #82

Closed aurimus closed 7 years ago

aurimus commented 7 years ago

I am using it on a site where the images are loaded with local path <img src="pagename/somepath/image.jpg"/> and what happens is that the pagename does not get updated even though that's what should change. Therefore images don't load.

lacrioque commented 7 years ago

This seems to be a design issue. Pjax can only change dom elemtents, it will not change the pagename. You may change that manually on pjax:complete, or try to render the images differently.