Jump to content

CMS, incorrect URL Rewriting


Recommended Posts

Hello!

 

We are making site based on default theme(prestashop version 1.52), but we have made great deal of customization on it.

We have added many custom images, which in code has URL like: "/img/ImageName.jpg" (not full URL like: "mydomain.com/img/ImageName.jpg"), we have replaced cart icons and added few others, which are displayed on almost all pages on our site.

 

Everything works fine, except for CMS pages. As you know CMS pages use "/content/" in the URL when friendly URL is enabled to distinct its page ids from product category ids, but the problem is that for some reason it adds "/content/" to the custom image links also, so if the original image URL is: "mydomain.com/img/MyImage.jpg" by friendly URL in CMS pages it is changed to: "mydomain.com/content/img/MyImage.jpg", on which image cannot be reached of course and they do not load, global.css isn't loaded also.

We have this problem only when friendly URL is enabled, with it turned off, it works fine.

 

So maybe anyone can help us how to stop Prestashop on CMS pages adding "/content/" to URLs of files which should not have them, thus making them inaccessible.

 

Thanks in advance!..

Edited by MKhve (see edit history)
Link to comment
Share on other sites

  • 5 months later...
×
×
  • Create New...