Broken filelinker links when using TinyMCE via https?

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
npd1164
Forum Members
Forum Members
Posts: 28
Joined: Tue Apr 08, 2008 5:24 pm

Broken filelinker links when using TinyMCE via https?

Post by npd1164 »

We have a new site, running on CMSMS 1.8.2 - It has been brought to my attention that when Admin users, logged in to Admin via SSL, use TinyMCE filelinker to link to a file, it generates what appears to be a truncated link.   When doing so outside of SSL, it generates a proper link just fine. Also, it does not do this for inserted images - the paths generated for these are just fine.   Any clue how to fix it for making links?  Is there a setting somewhere to adjust TinyMCE in this matter?

Examples:
When Logged in via https://www.mysite.com/admin/
The file path generated by TinyMCE's filelinker, is:  "s/myfile.pdf"

When logged in via http://www.mysite.com/admin/
The file path generated by TinyMCE's filelinker, is:  "uploads/myfile.pdf"

The latter is, of course, correct ...but how can we make it work when under ssl??

FYI - I've tried setting TinyMCE to use non-relative links ...but the result is the same. It does this:
"http://www.mysite.com/s/myfile.pdf" , rather than: "http://www.mysite.com/uploads/myfile.pdf"
Attachments
6.gif
Last edited by npd1164 on Fri Dec 10, 2010 1:51 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Broken filelinker links when using TinyMCE via https?

Post by Dr.CSS »

Have you looked to make sure the https paths in config.php are correct?...
npd1164
Forum Members
Forum Members
Posts: 28
Joined: Tue Apr 08, 2008 5:24 pm

Re: Broken filelinker links when using TinyMCE via https?

Post by npd1164 »

Yes, both the root and ssl variables appear to be set correctly.  As I mentioned, the odd thing is that TinyMCE's insert image function works just fine and resolves the correct path when under SSL.  Only the filelinker seems to have the issue.

$config['root_url'] = 'http://www.mysite.com";
$config['ssl_url'] = "https://www.mysite.com";
$config['uploads_url'] = $config['root_url'] . '/uploads';
Post Reply

Return to “CMSMS Core”