We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40194
    • 3 Posts
    Hey guys, I've been looking through the documentation, and I can't figure out how to get around this problem. Every time I use an absolute link, it's appended to the base url, so for example:

    http://well.blogs.nytimes.com/2011/01/28/how-meditation-may-change-the-brain/


    inside of an href attribulte outputs

    http://www.leafspirit.com/”http://well.blogs.nytimes.com/2011/01/28/how-meditation-may-change-the-brain/”


    I'm sure there's something simple I'm doing wrong, but I can't seem to figure out what it is. [ed. note: leafspirit last edited this post 14 years, 3 months ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      Sounds like you have some kind of plugin changing links? No idea otherwise...
        • 40194
        • 3 Posts
        Tried like hell to figure it out, and I narrowed it down, and it appears that the only links which are behaving this way are the ones inside Articles resources, but this doesn't make sense to me that links within articles would have the base_url prepended as well as not stripping the quotes, while every other link on the site whether relative or absolute shows up correctly.

        EDIT: Funnily enough the page source shows the HTML for the links correctly, so I'm now thinking Articles might not be the culprit, but it's only happening to links in the content section of Articles. I can't think of any server settings or plugins that would be to blame, so I'm not even sure at this point if this is even a MODx problem. [ed. note: leafspirit last edited this post 14 years, 3 months ago.]
          • 40194
          • 3 Posts
          Ok, I feel kinda stupid now. Turns out, when I pasted my text from OpenOffice, somehow it preserved the formatting of the quotation marks around the links, so they showed up quoted, but I guess where encoded wrong. So I had to manually replace all the quotation marks in the links with quotation marks haha

          Thanks for the reply though!
            • 34178
            • 212 Posts
            Hi leafspirit,

            another reason for this behavior ist not adding "http". If you don´t add http it ist relative to the site-root.