We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4436
    • 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.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4436
        • 2 Posts
        Excellent! Thanks!