Page 1 of 1

CMS Linker adding "../" to start of each URL

Posted: Mon Oct 12, 2015 1:30 pm
by CosmicJamie
Hello all.
We're doing some work for a client and we recently made their website responsive.
We had to upgrade CMSMS in order to do this - it's using version 1.12.1.

After we upgraded and implemented the updated templates, we noticed some odd things happening. One one of the pages, every time we edit the page, a "../" is added to the start of the URL.

In the CMS editor, it looks like this: <a href="../{cms_selflink href='pagetitle' }">Page Title</a>

When changes are saved (I should also mention that when the Submit button is pressed, the page just goes white and does not refresh), the link changes to http://www.domainname.com/http://www.domainname.com//index.php?page=pagetitle, causing the URL to break.

Does anyone have any clue as to what's going on? As you can see from the link above, it's also adding an extra forward slash after the domain name - while this has no effect, it's still very odd. It's not on our own servers which makes it more tricky - is this likely to be a hosting related issue?

Re: CMS Linker adding "../" to start of each URL

Posted: Mon Oct 12, 2015 3:16 pm
by JohnnyB
Check your editor's settings - TinyMCE has a setting for that and perhaps during the CMSMS upgrade, that module was upgraded?

Re: CMS Linker adding "../" to start of each URL

Posted: Mon Oct 12, 2015 3:25 pm
by CosmicJamie
JohnnyB wrote:Check your editor's settings - TinyMCE has a setting for that and perhaps during the CMSMS upgrade, that module was upgraded?
Hi Johnny - I can't see anything that looks out of the ordinary in the module settings - something to do with relative URLs being generated?

Re: CMS Linker adding "../" to start of each URL

Posted: Mon Oct 12, 2015 4:27 pm
by JohnnyB
Look for the settings related to this in the Advanced tab of TinyMCE: Load the CMS-linker - Maybe that is a new setting since your upgrades and it will influence the links. Also be sure to clear any static config files if they were in use previously.

Re: CMS Linker adding "../" to start of each URL

Posted: Tue Oct 13, 2015 1:28 am
by Dr.CSS
I would also check the config.php, there used to be settings/parameters to set the site root_url which may need to change, newer version don't require this setting and I've had site mess up when using it...

$config['root_url'] = 'http://somesite.com';