We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 911
    • 3 Posts
    This is sort of two questions in one. I have friendly URLs working on this site http://animaleadership.com but am having an issue with the home page. When I don’t set an alias for the home page, wayfinder creates an href attribute of "/1" for the home page even though it is assigned as the start page in the configuration options. When I set an alias for that page the result is also messy as when the user clicks on the "home" link they are taken to http://animaleadership.com/home.

    The way I would like to fix the problem is to modify the wayfinder snippet to compare the current page ID to the site start ID and if they match output an attribute of href="". My problem here is that I can’t seem to access the "site start" id via the modx api. Is it accessible? If so, I can’t see it in the documentation that is available online.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It can either be [(site_start)], or inside snippet code $modx->config[’site_start’]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 15987
        • 786 Posts
        I have this working in the latest updates to Wayfinder. I will be updating my post with a working version of this later today.

        http://modxcms.com/forums/index.php/topic,12286.0.html
          • 911
          • 3 Posts
          Thank you both so much!