We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16942
    • 33 Posts
    Hi all,

    I wonder if anyone has encountered this: I’m seeing some strange behaviour using the wayfinder and friendly urls. Say a site has five pages - one of which is a child and each have a resource alias
    [table][tr]
    [td]Page ID[/td]
    [td]Alias[/td]
    [td]Expected URL[/td]
    [/tr]
    [tr]
    [td]1[/td]
    [td](none)[/td]
    [td]http://www.mysite.com/[/td]
    [/tr]
    [tr]
    [td]2[/td]
    [td]about[/td]
    [td]http://www.mysite.com/about[/td]
    [/tr]
    [tr]
    [td]3[/td]
    [td]products[/td]
    [td]http://www.mysite.com/products/[/td]
    [/tr]
    [tr]
    [td]4[/td]
    [td]products/widget1[/td]
    [td]http://www.mysite.com/products/widget1[/td]
    [/tr]
    [/table]
    And consider the Wayfinder parts as follows
    CHUNK: navigation
    [[Wayfinder? &startId=`0` &outerClass=`nav` &firstClass=`first` &hereClass=`current` &lastClass=``  &rowTpl=`tpl_rowTopNav` &level=`1` ]]
    

    CHUNK: tpl_rowNav
    <li><a[[+wf.classes]] href="[[+wf.link]]"  title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
    


    So here’s the problem: When browsing the site if you’re in the ’top level’ the Wayfinder writes the navigation as you’d expect. However if you are in http://www.mysite.com/products/widget1 - ie. one level down, it writes the URLs as:
    http://www.mysite.com/ correct
    http://www.mysite.com/products/about incorrect
    http://www.mysite.com/products/products incorrect

    I’ve tried inserted a leading slash in the href but that breaks the link to the homepage - you get http://www.mysite.com/http://www.mysite.com

    In my settings we’ve got user_alias_path=Yes, friendly_alias_urls=Yes, friendly_urls=Yes

    Where am I going wrong? How can this be fixed?

    Thanks
    Leo
      • 16942
      • 33 Posts
      As there doesn’t seem to be a very active community for this product, I thought I’d post the outcome of my findings so as to share this knowledge. These instructions are for Revo.

      First up, start by switching on absolute links in the Wayfinder with
       &fullLink=`TRUE`


      Next, if you don’t want every URL to end in .html, edit your content types. To do this choose System > Content Types. Next, locate HTML. Then in the File Extensions column for that row, just delete the .html contents. Click Save.

      Finally a few system settings will set you on your way. System settings are accessed by System > System Settings. I’ve listed the key below so you can filter by that for speed
      use_alias_path : Yes
      friendly_alias_urls : Yes
      friendly_urls : Yes

      Once done, you should be well on your way. Good luck!
        • 26602
        • 3 Posts
        Thank you very much leoandrews. This thread has been a great help to me!
          • 3440
          • 17 Posts
          Thanks leoandrews !

          The Wayfinder parameter &fullLink=`TRUE` definitely did the trick for me.

          Regards
            • 19083
            • 15 Posts
            May all the good luck in the world come to you. I was ready to toss MODx Revolution and go back to Evolution. All the navigation for my containers weren’t working until I added this fix.
              • 1061
              • 81 Posts
              If you've got a
              use_alias_path = yes

              You need to use in template this:
              <head>...
              <base href="[[++site_url]]">

              Important!

              Do not use
              &fullLink=`TRUE`
              it doesn't work. [ed. note: alex_dutch last edited this post 13 years, 5 months ago.]