We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37988
    • 6 Posts
    I am new to MODX. So far I think it's great. I love the new UI in 2.2.

    Unfortunately I am having troubles creating a link from a document in 1 context to another.

    I added anonymous permissions (9999) to the new context and flushed all sessions, which hasn't worked. Links are in this format:
    [[~3]]


    Links from the default 'web' context are all good. Links from 'web2' however only point towards the url of the 'web2' context.

    eg with same 2 links on both pages:
    'web' links look like this
    http://www.domain1.com/web1.html
    http://www.domain2.com/web2.html

    'web2' links look like this
    http://www.domain2.com/web1.html
    http://www.domain2.com/web2.html

    Has anyone come across this? Any tips you have please throw my way! [ed. note: user0100_modx last edited this post 14 years, 9 months ago.]
      • 37988
      • 6 Posts
      To make things even stranger, I added a third context and that one works fine ! smiley

      There must be a setting that's come loose in my travels. I'll report my findings which will hopefully help others.


      Nup still not working. sad
      [ed. note: user0100_modx last edited this post 14 years, 9 months ago.]
        • 37988
        • 6 Posts
        I was able to resolve this by adding 'http_host' and 'site_url' context settings for the default 'web' context. Hope this helps someone! smiley
          • 36613
          • 328 Posts
          in my web context i have:
          base_url: /
          http_host: www.testtest.com

          but doesn't work.