We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37550 ☆ A M B ☆
    • 711 Posts
    Hi,

    Im currently using Wayfinder on my site which is wicked, I have just created a worldpay callback page in modx by making a new template with full urls links i.e https://onesmart.co.uk/assets/images/blabla this works fine for images, css etc but im with wayfinder the links are created as relative ie /homepage.html insted of https://onesmarthost.co.uk/homepage.html.

    This reason I need it this way is when a customer pays with Worldpay they remain on WP site but WP can call a page on my site and present it on theirs a kinda Thankyou page etc.

    Does anyone know if there is an easy way to have modx output full urls on a particular page or even in wayfinder?

    Thanks

    Aaron
      http://www.onesmarthost.co.uk
      UK MODX Hosting with love.
      • 15987
      • 786 Posts
      awardle,
      wayfinder just uses the modx makeUrl function which creates the links, so I will look into adding this as an option.
        • 37550 ☆ A M B ☆
        • 711 Posts
        That would be great one of the main things with world pay callback pages is the need to have absolute urls.

        For the time being I will copy the HTML source of <div class="menu"> and use that in a chunk for my world pay callback template, it won’t be dynamic but at least it will help me get by smiley

        Thanks
          http://www.onesmarthost.co.uk
          UK MODX Hosting with love.
          • 15987
          • 786 Posts
          I have added support for full urls in the latest release of wayfinder. just set the parameter &fullLink=`1` and it will output the whole url.

          get it here: http://modxcms.com/Wayfinder-868.html
            • 37550 ☆ A M B ☆
            • 711 Posts
            Thanks for that Ive just tried it out but now it doesnt seem to output any information to the screen even when using the standard Wayfinder call

            [[Wayfinder? &amp;startId=`0`]]

            Thanks

            Aaron
              http://www.onesmarthost.co.uk
              UK MODX Hosting with love.
              • 15987
              • 786 Posts
              Make sure you updated the snippet and all of the included files. I am not having any problems, add the parameter &debug=`1` and see if that gives you anything.
                • 37550 ☆ A M B ☆
                • 711 Posts
                Hi

                Sorry for the delay I will test it out over the weekend late at night and let you know, it was quite early in the morning when i originally tried it, perhaps my ISP was caching files again which it does quite often sad.

                Thanks for the help on this.
                  http://www.onesmarthost.co.uk
                  UK MODX Hosting with love.