Jump to content

Prestashop 1.7 generates path to assets without slashes


osipov.me

Recommended Posts

After migrating my site from localhost to external host, prestashop generates urls to CSS and JS such way 



http://example.euthemesnewthemeassetscsstheme.css

 instead of 



http://example.eu/themes/newtheme/assets/css/theme.css

 All things i have done:


  1. Created new prestashop store in my localhost.
  2. Changed Shop domain and SSL domain in prestashop back office.
  3. Copied files to ftp.
  4. Exported ->imported database.
  5. Edited parameters.phpin order to point new database.

All other is fine, but urls goes wrong. How can i fix it?


Edited by osipov.me (see edit history)
Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...
  • 7 months later...

same issue here, can't believe it hasn't been resolved yet!

all the js and css paths are stripped from slash / for example

<script type="text/javascript" src="http://xxx.commodulesan_brandsliderviewsjs7de2d73e0f14afa857eeaab9d386f021.js" ></script>

or

<link rel="stylesheet" href="http://xxx.commodulesan_themeviewscsssidebarcart.css" type="text/css" media="screen">
<link rel="stylesheet" href="http://xxx.commodulesan_themeviewscssbuttons_effect.css" type="text/css" media="screen">

It's broken when in Multistore and shop url is set to subdomain xxx.xxx.com but works for main domain xxx.com/shop

any idea??

PS 1.7

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...