ccm:base_url adds an extra forward slash
Permalink
I have a client using Dreamhost and I noticed that when using the 'Insert Link to Page' feature in the WYSIWYG editor, the url gets written with an extra forward slash.
Example: mysite.com/about-us gets published as mysite.com//about-us
The only thing I can think of that is causing this is that the root directory folder is named after the url.
Example: Most sites use public_html as the main root directory and dreamhost is using mysite.com as a root directory.
Anyone else run across this issue?
I've submitted this as a possible bug with C5, but I highly doubt that it is.
Example: mysite.com/about-us gets published as mysite.com//about-us
The only thing I can think of that is causing this is that the root directory folder is named after the url.
Example: Most sites use public_html as the main root directory and dreamhost is using mysite.com as a root directory.
Anyone else run across this issue?
I've submitted this as a possible bug with C5, but I highly doubt that it is.
To see what the constants are you can use:
http://www.concrete5.org/marketplace/addons/constants-info/...
http://www.concrete5.org/marketplace/addons/constants-info/...
jbx,
Neither of those were defined since the core no longer uses them, but I did add the BASE_URL to see if that corrected it and it didn't. I made sure not include a trailing slash.
Neither of those were defined since the core no longer uses them, but I did add the BASE_URL to see if that corrected it and it didn't. I made sure not include a trailing slash.
Any additional ideas?
I've got the same thing on 1 website and I haven't been able to get to the bottom of it yet.
Found out it was a bug that has been fixed:http://www.concrete5.org/index.php?cID=311209...
DIR_REL should be empty and BASE_URL should not have a trailing slash.
(That assumes they are in the site.php - in 5.5 onwards you can delete them from the site.php as they are no longer needed...)
Jon