cms_selflink with broken internal links (11.1.4)

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
takku
New Member
New Member
Posts: 5
Joined: Mon Feb 18, 2013 8:48 am

cms_selflink with broken internal links (11.1.4)

Post 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.. :-(
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1802
Joined: Wed Feb 25, 2009 4:25 am

Re: cms_selflink with broken internal links (11.1.4)

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: cms_selflink with broken internal links (11.1.4)

Post 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...
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: cms_selflink with broken internal links (11.1.4)

Post 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.
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
Post Reply

Return to “CMSMS Core”