Hey Richtestani,
Try going to tools, config, friendly url then turning off ’Use Friendly alias path:’
Let me know how you go.
Well, that’s not really what I’m looking for.
For one, I like the virtual paths, since it gives the site better looking urls, and doesn’t make the site seem flat.
Also, this would not fix paths to image paths.
I have the same problem except that I’m trying to link to PDF files. With Friendly URLs enabled it should automatically prefix links to assets and resources with a slash to avoid problems. This is very common practice when using any sort of "pretty" URLs. But even when I try adding a slash into the HTML it gets stripped on save. This is incredibly annoying since it basically makes linking to assets impossible.
Is there any way to disable the automatic stripping of the first "/"?
Clairification: It seems that this is specifically a problem with TinyMCE. When I disabled TinyMCE and edited the HTML (instead of using the HTML button of TinyMCE) the "/" prefix was saved. So, is there a way I can modify TinyMCE to stop this?
-
☆ A M B ☆
- 24,524 Posts
There is a configuration option for the plugin itself. With the "Path Option" select box you can select one of three types of paths: rootrelative, docrelative, or fullpathurl.
In the case of wanting the leading /, you would use "rootrelative".
http://wiki.modxcms.com/index.php/TinyMCE#Plugin_Configuration
And Susan beat me to it. Sorry for the double post. I didn’t think that someone would have replied so quickly. Had originally posted the solution Susan did. Thanks!