We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30497
    • 245 Posts
    I didn’t find any specific getResources thread, so I am posting here - please feel free to move or suggest a new location if required.

    I am using getResources where I was previously using Wayfinder or Ditto. I have found that once I get to a page that is a container, getResources uses that as the "root" for building it’s links.

    For instance--

    Here is my call:
    [[getResources?&parents=`0`&tpl=`getResources_menu`&sortdir=`ASC`&limit=`20`]]


    It builds the navigation here: http://getseotools.com/

    But notice that the page "Rank Checkers" is a container. If I navigate to "Rank Checkers" then all the menu links on that page add /rank-checkers/ to the link, incorrectly, so, for instance, I have http://getseotools.com/rank-checkers/blog.html when it should be http://getseotools.com/blog.html.

    I looked for a parameter in getResources to change this behaviour, but I found none.

    I am not sure if this is user error. Can anyone suggest a way around this?

    Thanks.
      • 34193
      • 330 Posts
      Add

      <base href="[[!++site_url]]" />


      to the head section of your template
        • 30497
        • 245 Posts
        Quote from: peteedley at Mar 28, 2010, 12:17 PM

        Add

        <base href="[[!++site_url]]" />


        to the head section of your template

        Thanks. Of course, it works, but somehow it seems weird to me to define this in html markup. I also noticed that modxcms.com doesn’t use the base tag, but I guess they may be running Wayfinder on here.

        Anyway, thanks for your help.
          • 28215
          • 4,149 Posts
          We most definitely use the base tag on our main site; just not on the forums, which are run in SMF, not modx.
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com