We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38630
    • 21 Posts
    I have setup a multi context install which is using each context for separate language versions.

    Each context has it's own
     base_url: /context/
    and
    site_url: https://domain.com/context
    .

    I have rewrite rules to manage the switching between the contexts based on language selection which all works. The problem is with assets. All assets are set to use relative paths but the output from any image TV is badly wrong:
    /context/http://domain.com/assets/assets/images/top-right-image.jpg

    Note the context before the protocol, the fact that the protocol is http rather than https and 'assets' appears twice.

    I had to set $modx_assets_path to "/revolution/assets/" and $modx_assets_url= '/assets/' so the js would load in the front end. But everything seems to be a mess. Any suggestion how to fix the asset link mess?

    This question has been answered by lkfranklin. See the first response.

    • discuss.answer
      • 17301
      • 932 Posts
      Hi Nathan,

      You need to setup/update media sources in media>media sources and set the basePath and baseURL.
      assets/images/


      Then if you have different media sources for different context in your TV click the media sources tab and set the media source for the particular context.

      Hope this helps.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 38630
        • 21 Posts
        Awesome, thanks LK. That setting is buried!