Page 1 of 1

Broken filelinker links when using TinyMCE via https?

Posted: Fri Dec 10, 2010 1:28 am
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"

Re: Broken filelinker links when using TinyMCE via https?

Posted: Fri Dec 10, 2010 2:24 am
by Dr.CSS
Have you looked to make sure the https paths in config.php are correct?...

Re: Broken filelinker links when using TinyMCE via https?

Posted: Fri Dec 10, 2010 3:18 am
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';