-
- 44 Posts
I am migrating from Evo to Revo, and have hit another stumbling block. I promise I’ve searched for ages in the forums, and played with various settings, but with no joy.
Basically I want paths to be root relative. So pretty much for every link to begin with /
However all links on my site are just relative, so are thus failing.
I know I had this issue with TinyMCE with Evo, and had to set it to root relative.
But my problem is not just isolated to MCE - all the Wayfinder navigation is like this too. So it made me wonder if there’s another setting I’m missing.
Any help much appreciated!
Thanks
I don’t think there’s a way to do this currently, but it’s definitely worth a feature request imo.. Could simply be a system setting toggling something in the makeUrl function.
The easiest solution is to add a <base href="[[!++site_url]]"> to your html header.
I use base href all the time.. haven’t figured out any problems with it.
-
- 44 Posts
Thanks. I think sometimes I just like to make extra work for myself! Not sure why I have that perception about base href, but time to drop it and move on with things.
-
- 37 Posts
In case there is anyone, like me, who is still having problems with this, you need to change the tiny.base_url to ’/’ . That overrides the ’/asses/components/tinymce’ as the base.
Then change tiny.path_options to ’rootrelative’.
-
- 6 Posts
Thanks Michael (mregan), that's a great tip. I can't see why this isn't set as the default - non-root relative URIs are too fragile. The moment you want to use your resource outside the root, your links are broken, unless you use the <base> tag, which can have undesirable or unexpected side effects.