We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53376
    • 32 Posts
    If you go to https://mine.by/play, you will see link to EN version of site, it's fine. But when you go to https://en.mine.by/play (EN version), you will see the same link (to EN version, instead of RU). How to fix?

    Settings:
    babel.contextKeys: web,en

    Snippet call:
    [[BabelLinks? &showUnpublished=`0` &includeUnlinked=`0` &tpl=`other_lang`]]

    Chunk 'other_lang':
    <a rel="alternate" href="[[+url]]" class="switch_lang">
    	<i class="lang lang-[[+cultureKey]]"></i>
    	[[+cultureKey:uppercase]]
    </a>


    'en' context settings:
    cultureKey: en
    error_page: 80
    site_name: Dig on Mine.by!
    site_start: 79
    site_url: https://en.mine.by/
      • 53376
      • 32 Posts
      Bump
        • 53376
        • 32 Posts
        While debugging snippet I've detected about MODX returns wrong modContext. What the mystics, why so?
        $context = $modx->getObject('modContext', array('key' => 'web'));
          • 53376
          • 32 Posts
          Actual