We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30399
    • 23 Posts

    I have the following problem. I have a simple site with two menu links, one menu link (Parent1) has one child page (Child1).

    When I click on the Parent1 menu option the URL in the browser address bar is:

    www.my-site.com/Parent1.html

    When I click on the Child1 menu option the URL is:

    www.my-site.com/Parent1/Child1.html

    All well and good. However, when I then click on the Parent1 menu option I see this URL:

    www.my-site.com/Parent1/Parent1.html

    Then when I click on Child1 again I see this URL:

    www.my-site.com/Parent1/Parent1/Child1.html

    When I click back on Parent1 menu option I get:

    www.my-site.com/Parent1/Parent1/Parent1.html

    If I click on Child1 again I get:

    www.my-site.com/Parent1/Parent1/Parent1/Child1.html

    And so on, the URL gets longer and longer.

    I am using a very basic wayfinder:

    [[!Wayfinder? &startId=`0` &level=`2` !]]

    I am using Revo 2.0.0.pl rev7212

    Use friendly alias path = yes
    Use friendly aliases = yes
    Use friendly URLs = yes

    This happens in FireFox, IE8 and Chrome.

    Any ideas ?

    huh

    Thanks!
      • 17499 ☆ A M B ☆
      • 872 Posts
      Did you reference the base_url in your template?
        • 30399
        • 23 Posts

        Thanks for replying.

        No I don’t reference base_url in my template.
          • 17499 ☆ A M B ☆
          • 872 Posts
          You should add it:

          <head>
          	<title>[[++site_name]] :: [[*pagetitle]]</title>
          <!-- add the base url here -->
          	<base href="[[++site_url]]"></base>
          
            • 30399
            • 23 Posts
            Quote from: lossendae at Aug 26, 2010, 07:00 AM

            You should add it:

            <head>
            	<title>[[++site_name]] :: [[*pagetitle]]</title>
            <!-- add the base url here -->
            	<base href="[[++site_url]]"></base>
            


            Thanks! That worked! shocked

            But why?? (note - I am not a techie).

              • 17499 ☆ A M B ☆
              • 872 Posts
              The <base> tag specifies a default address or a default target for all links on a page. (w3schools.com)
                • 30399
                • 23 Posts

                Thanks again.
                  • 32699 ☆ A M B ☆
                  • 427 Posts
                  W. Shawn Wilkerson Reply #8, 16 years, 1 month ago
                  In the future you may want to refer to the docs. In this instance: http://rtfm.modx.com/display/revolution20/Using+Friendly+URLs

                  The documentation is getting better day-by-day.
                    Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                    Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com