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.

FatTony1952
 
jbx replied on at Permalink Reply
jbx
What is BASE_URL defined as in the site.php? and DIR_REL?

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
JohntheFish replied on at Permalink Reply
JohntheFish
To see what the constants are you can use:
http://www.concrete5.org/marketplace/addons/constants-info/...
FatTony1952 replied on at Permalink Reply
FatTony1952
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.
FatTony1952 replied on at Permalink Reply
FatTony1952
Any additional ideas?
jb1 replied on at Permalink Reply
jb1
I've got the same thing on 1 website and I haven't been able to get to the bottom of it yet.
jb1 replied on at Permalink Reply
jb1
Found out it was a bug that has been fixed:http://www.concrete5.org/index.php?cID=311209...