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

    :) Let me explin a little better what I meant:
    I included an HTML comment to see if I get the updated version and NOT some old cached output. If I was to include a MODX comment that wouldn't work would it?! My thought was this: If I include some HTML along side the changes I made to the Wayfinder call I would be sure to see that I really get the newest version of the script. So I include <!-- testnav2 --> <!-- testnav3 --> or <!-- testnav5 --> etc... every time I change something that I want to test. In the outputted HTML I can then see what version of the code I am looking at. A quasi DIY-version-management for the poor so to speak wink

    As to your questions: Yes I have emptied the cache and verified the folder actually being empty afterwards.
    The HTML output is as follows:
    <nav role="navigation">
    <ul><li class="first active"><a href="http://domain.tld/" title="Home" >Home</a></li>
    <li><a href="news/all/" title="News" >News</a><ul><li class="first"><a href="http://domain.tld/news/all/" title="National News" >All</a></li>
    <li><a href="http://domain.tld/news/tour/" title="Tour" >Tour</a></li>
    <li><a href="http://domain.tld/news/release/" title="Release" >Release</a></li>
    <li><a href="http://domain.tld/news/dance/" title="Dance" >Dance</a></li>
    <li><a href="http://domain.tld/news/gig/" title="Gig" >Gig</a></li>
    <li><a href="http://domain.tld/news/festival/" title="Festival" >Festival</a></li>
    <li><a href="http://domain.tld/news/industry/" title="Industry" >Industry</a></li>
    <li><a href="http://domain.tld/news/film/" title="Film" >Film</a></li>
    <li class="last"><a href="http://domain.tld/news/arts/" title="Arts" >Arts</a></li>
    </ul></li>
    <li><a href="/events" title="the Guide" >the Guide</a><ul><li class="first"><a href="http://domain.tld/guide/gig-news/" title="Gig News" >Gig News</a></li>
    </ul></li>
    <li><a href="interviews/all/" title="Interviews" >Interviews</a><ul><li class="first"><a href="http://domain.tld/interviews/all/" title="Interviews" >All</a></li>
    <li><a href="http://domain.tld/interviews/music/" title="Music" >Music</a></li>
    etc...
    </ul>
    </nav> <!-- testnav18 -->
    


    The snippet looks like this:
    <li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
    


    I tested this snippet too by adding a hash to its title like so:
    <li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="#[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
    


    Which resulted in:
    <nav role="navigation">
    <ul><li class="first active"><a href="http://domain.tld/" title="Home" >Home</a></li>
    <li><a href="news/all/" title="#News" >News</a><ul><li class="first"><a href="http://domain.tld/news/all/" title="National News" >All</a></li>
    <li><a href="http://domain.tld/news/tour/" title="Tour" >Tour</a></li>
    <li><a href="http://domain.tld/news/release/" title="Release" >Release</a></li>
    <li><a href="http://domain.tld/news/dance/" title="Dance" >Dance</a></li>
    <li><a href="http://domain.tld/news/gig/" title="Gig" >Gig</a></li>
    <li><a href="http://domain.tld/news/festival/" title="Festival" >Festival</a></li>
    <li><a href="http://domain.tld/news/industry/" title="Industry" >Industry</a></li>
    <li><a href="http://domain.tld/news/film/" title="Film" >Film</a></li>
    <li class="last"><a href="http://domain.tld/news/arts/" title="Arts" >Arts</a></li>
    </ul></li>
    <li><a href="/events" title="#the Guide" >the Guide</a><ul><li class="first"><a href="http://domain.tld/guide/gig-news/" title="Gig News" >Gig News</a></li>
    </ul></li>
    <li><a href="interviews/all/" title="#Interviews" >Interviews</a><ul><li class="first"><a href="http://domain.tld/interviews/all/" title="Interviews" >All</a></li>
    <li><a href="http://domain.tld/interviews/music/" title="Music" >Music</a></li>
    <li><a href="http://domain.tld/interviews/arts/" title="Arts" >Arts</a></li>
    <li><a href="http://domain.tld/interviews/film/" title="Film" >Film</a></li>
    <li class="last"><a href="http://domain.tld/interviews/industry/" title="Industry" >Industry</a></li>
    </ul></li>
    <li><a href="http://domain.tld/reviews/" title="#Reviews" >Reviews</a><ul><li class="first"><a href="http://domain.tld/reviews/album/" title="Reviews - Album" >Album</a></li>
    <li><a href="http://domain.tld/reviews/film/" title="Reviews - Film" >Film</a></li>
    <li><a href="reviews/live/nsw/" title="Live" >Live</a></li>
    <li><a href="http://domain.tld/reviews/gear/" title="Reviews - Gear" >Gear</a></li>
    <li><a href="reviews/arts-review/nsw/" title="Arts" >Arts</a></li>
    <li class="last"><a href="http://domain.tld/reviews/comedy/" title="Reviews – Comedy" >Comedy</a></li>
    
    etc...
    </nav> <!-- testnav19 -->
    


    That proved to me that firstly the cache is not the problem and secondly neither is the template(snippet) that is used as the very same outputs both, relative and absolute addresses.

    Like I said I have removed the cache wrapper for now to find the cause of this problem.
    I am using wayfinder-2.3.3-pl in MODX Revolution 2.2.8-pl (traditional).

    The site is a decent size and has some legacy code sprinkled everywhere. I just recently joined the team. Everything works though...

    I do really appreciate the support [ed. note: dominikwilkowski last edited this post 13 years, 2 months ago.]
      • 32699 ☆ A M B ☆
      • 427 Posts
      Those urls are absolute. So what am I missing?

      If you are referring to
      <li><a href="/events" title="#the Guide" >the Guide</a><ul><li class="first"><a href="http://domain.tld/guide/gig-news/" title="Gig News" >Gig News</a></li>
      </ul></li>


      $this->xpdo->sendRedirect($this->_output, array('responseCode' => $this->getProperty('responseCode', 'core', 'HTTP/1.1 301 Moved Permanently')));


      You are correct. Schema is not taken into consideration for weblinks.

      For now I would suggest you string replace filters.

      [[Wayfinder:replace=`href="/==href="http://domain.tld/`?
      &startId=`0`
      &level=`2`
      &cacheResults=`1`
      &cacheTime=`0`
      &scheme=`full`
      &parentRowTpl=`navigation-parent`
      ]]

      I will file this as a bug. [ed. note: wshawn last edited this post 13 years, 2 months ago.]
        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
        • 44320
        • 17 Posts
        @Shawn

        sorry about not replying for so long.
        Thanks for the feedback. It helped me tremendously back then (I just forgot to say thank you).
        :)

        Hope this is being fixed soon. Until then I'll just use the filter.