WYSIWYG - Links to Root

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 8, 2009   (RSS)

By rjbathgate - April 7, 2009

Hi,

Whenever I add links in the code of a WYSIWG (rich text, tinymce) field, it automatically sets the link to root;

i.e.
<a href="index.php">
becomes
<a href="/index.php">

It automatically changes them to root when the html / wysiwyg is saved.

Is there anyway to stop this happening and for it to stay as it was input into the HTML? I.e. i want to add document relative paths.

Cheers in advance
Rob

Re: [rjbathgate] WYSIWYG - Links to Root

By ross - April 8, 2009

Hi Rob

Thanks for posting!

I did a little digging around and this is going to be a TinyMCE thing so we don't have as many options there. I think you might be able to get something going with the advlink plug-in but we won't be able to help much with that.

The easiest solution here would be to just type in the path to your files so they are relative to the root.

Instead of just typing: file.html

try going: /path/from/root/file.html

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/