Relative vs Absolute URLS

6 posts by 3 authors in: Forums > CMS Builder
Last Post: October 17, 2008   (RSS)

By avrom - October 16, 2008

Hi Dave,

I have URL's that need to be absolute (even on the same site) but the Tiny MCE Editor is changing them to relative URLS.

How to over ride this setting ?

Thanx Dave,
Avrom

Re: [virgodesign] Relative vs Absolute URLS

By Donna - October 16, 2008

Hi Avrom,

That's actually been an issue before -- take a look at this thread for more details and workarounds:

http://www.interactivetools.com/forum/gforum.cgi?post=60352#60352
Donna

--
support@interactivetools.com

Re: [virgodesign] Relative vs Absolute URLS

By Donna - October 16, 2008

Hi Avrom,

Well, you could always type in the full http:// when you want an absolute URL, and leave it as the default for relative? Would that work?
Donna

--
support@interactivetools.com

Re: [Donna] Relative vs Absolute URLS

By avrom - October 16, 2008

Hey Donna, I tried that.. it just converted them to a relative URL.

Cheers
Avrom

Re: [virgodesign] Relative vs Absolute URLS

By Dave - October 17, 2008

Hi Avrom,

I just confirmed this on my end. If you enter an absolute url with the same hostname as the host you are currently on then tinymce removes the hostname.

Some options would be to trick it by using a hostname that isn't the one you are on. Or... Trying some different tinymce settings. You can set those in /cmsAdmin/lib/wysiwyg.php

Note that fixing one thing might break another (having all absolute urls might be bad news if you need to change the domain). So you'll want to test it well. Here's some options to check.

http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/relative_urls
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/document_base_url
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/remove_script_host

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com