Page 1 of 1

cms_selflink with broken internal links (11.1.4)

Posted: Mon Feb 18, 2013 9:02 am
by takku
CMS Made Simple™ 1.11.4 “Fernandina”

Problem reproduces as follows:

1) Edit some page and make it contain internal link

2) Highlight text and make internal link to some page

3) Save

4) When the page is rendered, it contains broken link
a) to main page

Code: Select all

http://www.domain.com/http://www.domain.com/
b) to some other page

Code: Select all

http://www.domain.com/http://www.domain.com/index.php?page=other-page

Don't know if this is related to this, but I have renamed the admin-section, and forced it over SSL..

Code: Select all

$config['admin_dir'] ='newlocation';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
  $config['root_url'] = 'https://domain.com/';
}

I think that this might be issue with MicroTiny, as the source code in the WYSIWYG contains the links as:

Code: Select all

<a href="../{cms_selflink href='home'}">main page</a> 
<a href="../{cms_selflink href='other-page'}">other page</a> 
So, any suggestions would be highly appreciated as this renders the whole internal linking as useless.. :-(

Re: cms_selflink with broken internal links (11.1.4)

Posted: Mon Feb 18, 2013 7:45 pm
by DIGI3
Comment out the changes you made to config.php and see if that fixes it. That's probably not the best way to force ssl.

Re: cms_selflink with broken internal links (11.1.4)

Posted: Mon Feb 18, 2013 7:47 pm
by Dr.CSS
Most likely has to do with the changes you made in the config.php, and root url should not have / on the end, change config back to normal and see if it fixes it, P.S. there are already settings for https...

Re: cms_selflink with broken internal links (11.1.4)

Posted: Tue Feb 19, 2013 12:56 pm
by fredp
Hi,

I was able to force SSL-only admin on a 1.11.4 installation by adding something like the following two lines as the last two config variables in my config.php:

Code: Select all

$config['admin_dir'] ='newlocation';
$config['admin_url'] = 'https://domain.com/newlocation';
I'm not sure if this will work for you, but if you're using MicroTiny (and not TInyMCE), I suspect it might.

Hope this helps,
Fred P.