-
- 2 Posts
First, I think that modx is a great system, but...this is driving me crazy...
Modx seems to continually strip the leading slashes off of all relative urls...so...
<img src"/images/image.gif">
is spontaneously changed into
<img src"images/image.gif">
even when I directly edit the html in the editor...it looks fine initially, but when I save it and then load the page as a user, the leading slash is gone
My temporary workaround is using the format
"[(site_url)]/images/image.gif"
but then the image does not appear in the editor.
Any solutions or suggestions before I dive into the code?
Thanks in advance to anyone that can help!
That’s the Rich Text Editor being excessively helpful (leading / is not a relative URL by the way). You can configure this in the Configuration tab of the TinyMCE plugin.