We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17851
    • 213 Posts
    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.
      Mark Macatee
      President
      Power 10 Solutions
      http://www.power10solutions.com
      • 7231
      • 4,205 Posts
      When using the Friendly Alias Path option you need to use the <base> tag for the paths to work. Add:
      <base href="[(site_url)]"/>

      to the head section of the template.

      Edit: I see you cant use it, sorry.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 25663 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
          • 17851
          • 213 Posts
          :’(
          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.
            Mark Macatee
            President
            Power 10 Solutions
            http://www.power10solutions.com
            • 7231
            • 4,205 Posts
            Quote from: MacLonghorn at Apr 02, 2009, 07:45 AM
            [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.
            That is very cool. If you have some time I would like to know more about how you accomplished this grin
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don&#39;t know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 17851
              • 213 Posts
              I posted this in the Tips & Tricks forum, where it probably fits best:
              http://modxcms.com/forums/index.php/topic,34536.0.html
                Mark Macatee
                President
                Power 10 Solutions
                http://www.power10solutions.com