I’ve got a site using FURL’s and I have Use Friendly Alias Path turned on. I therefore reference everything with an initial "/" etc. I’m using the Link List in TinyMCE and I noticed that it uses a URL that’s relative to the document, instead of relative to the root. For example, I have multiple "directories" so on this page:
[tt]mydomain.com/widgets/acme.html[/tt]
the inserted link is:
[tt]widgets/acme/policy.html[/tt]
resulting in the following request:
[tt]mydomain.com/widgets/widgets/acme/policy.html[/tt]
Can TinyMCE put a "/" at the beginning of the link? A <base> tag would fix it, but I can’t use that b/c it will screw up some other things I’m doing.
-
MODX Staff
- 12,272 Posts
I don’t think you’ll be able to use paths without a base href indeed.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
:’(
i’ll try something else then. btw, this is related to a situation I have where I’ve got a "multi domain" client, with one of the domains pointing to one of the "folders":
[tt]mydomain.com
superwidgets.com -> mydomain.com/widgets[/tt]
I’ve modified the htaccess file to allow for this, and I created a plugin with a few regex replacements to modify any/all links in the doc. Pretty cool.