We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28121
    • 107 Posts
    I just launched a site this morning and the Friendly URLs are giving me an odd problem whenever I am on a subpage.

    If I hover over or click on the top navigation links from the homepage, all the ’sections’ work and the URL path looks exactly like I expect.



    However, if you try to get to any page from an internal page,
    the URL path is picking up parts of the other links alias.

    IE in this case ever link has ’/about-us’ in the path to every other page

    I’m using Modx 2.07 but this was happening in 2.04


    Had anyone come across this issue before?
      • 36926
      • 701 Posts
      Quote from: sparrow at Jan 30, 2011, 10:21 AM

      I just launched a site this morning and the Friendly URLs are giving me an odd problem whenever I am on a subpage.

      If I hover over or click on the top navigation links from the homepage, all the ’sections’ work and the URL path looks exactly like I expect.

      http://www.lcglifechanges.com/

      However, if you try to get to any page from an internal page,
      say http://www.lcglifechanges.com/about-us/james-fitzsimons.html
      the URL path is picking up parts of the other links alias.

      IE in this case ever link has ’/about-us’ in the path to every other page

      I’m using Modx 2.07 but this was happening in 2.04

      My .htaccess file has following

      # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
      #RewriteCond %{HTTP_HOST} .
      #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
      #RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
      #
      # or for the opposite domain.com -> www.domain.com use the following
      # DO NOT USE BOTH
      #
      RewriteCond %{HTTP_HOST} .
      RewriteCond %{HTTP_HOST} !^www\.lcglifechanges\.com [NC]
      RewriteRule (.*) http://www.lcglifechanges.com/$1 [R=301,L]



      Had anyone come across this issue before?


      do you have a base path on in your template?

      <base href="[[++site_url]]" />
      
        • 28121
        • 107 Posts
        THanks...
        just figured it out. Think I needed a cup of coffee!
          • 4077
          • 1 Posts
          Holy Crap!

          Wow, this took me about three hours to figure out.

          For me, I just put the base link in " " and this was the only way it worked, not the other suggestions that I saw that included having [[++http://www.example.com]] and [(http://www.example.com)] in the base href tag

          <base href="http://www.example.com" /> <-- worked for me.

          Thanks for putting the link to your site, looking at the code was the only way I was able to solve this!!!
            • 3749
            • 24,544 Posts
            Quote from: BrianJBaldwin at Mar 02, 2011, 02:04 PM

            <base href="http://www.example.com" /> <-- worked for me.

            If that worked for you, the odds are pretty good that one of these would also work:

            Revolution:
            <base href="[[++site_url]]" />

            Evolution
            <base href="[(site_url)]" />
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting