Jump to content

Missing slashes from paths


sondaj

Recommended Posts

Hi!

 

I've installed prestashop 1.7 on my server in root directory. I faced some problems with that with installation but 

define('TARGET_FOLDER', __DIR__.'/');

changed to 

define('TARGET_FOLDER', './');

solved problem. 

 

Now I'm facing weird issue. I have problem with missing slashes "/" in js and css paths. Source code in meta :

<link rel="stylesheet" href="http://[domain]themesclassicassetscsstheme.css" type="text/css" media="all">
<link rel="stylesheet" href="http://[domain]jsjqueryuithemesbaseminifiedjquery-ui.min.css" type="text/css" media="all">
<link rel="stylesheet" href="http://[domain]jsjqueryuithemesbaseminifiedjquery.ui.theme.min.css" type="text/css" media="all">
<link rel="stylesheet" href="http://[domain]modulesps_imageslidercsshomeslider.css" type="text/css" media="all">

When I add slashes file is shown properly. I tried with __PS_BASE_URI__ constant but didn't solve that.

 

Any suggestion would be very helpful!

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

  • 1 month later...
  • 10 months later...
  • 2 months later...
  • 1 year later...
  • 6 months later...
  • 4 weeks 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

  • 3 weeks later...

Hi,

2 years have passed and I found solution for my issue.

In my case it was hosting settings - I had to enable redirection to a subdirectory without site separation from redirection with site separation. It works!

Link to comment
Share on other sites

  • 3 months 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...