We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7825
    • 10 Posts
    I have an issue with a multi-context modx install where links between different contexts don't work

    All the contexts have base_url, http_host and site_url set for their specific domains

    For example one of the sub-sites: www.mc2recruitment.com has links to www.mc2technical.com and www.mc2executive.com in it's main navigation (generated with Wayfinder). These are set up as Weblink Resources with the Resource ID of the target page in the weblink, eg [[~6]]

    Similiarly, the hard-coded Terms and Privacy Policy links in the footer link to Resources in the web context, but don't work from any other context. Links set up in the Wysiwyg seem to work correctly when linking to web contexts, but not any other outside of the context that the Resource is in

    Each of these links is just rendered as an empty href="" rather than the full path and adding a conditional such as &scheme=`full` has no effect


    Version Info: MODX Revolution 2.1.3-pl (traditional) running on Debian 5.0 with PHP 5 [ed. note: donnchadh last edited this post 15 years ago.]
      • 7825
      • 10 Posts
      Never mind, one of my collegues managed to find this post describing a similar issue using makeUrl: https://forums.modx.com/thread/31387/revo-solved-makeurl-doesn-t-work-between-different-contexts-when-logged-out

      Adding the same anonymous access to all contexts seems to have done the trick