How to temporarily disable language contexts with Babel and LangRouter

– ModxCloud - ModX 3.0 - all latest versions of extra’s –
For a website with three language contexts (en, de, nl) and of course ‘web’ which is not used for pages,
Babel and LangRouter are set up correctly and working, but since the translated pages aren’t available yet, a browser with ‘en’ culture-key gets redirected to the site_start of the default context (nl), no matter which link or menu is clicked. That is correct behaviour I guess.
So I’d like to disable the ‘en’ and ‘de’ contexts for as long as the translated pages aren’t ready, while letting ‘en’ and ‘de’ visitors browse the ‘nl’ context without redirects to non-existing translated pages.
How would I achieve that?

Maybe you can set the system setting langrouter.contextKeys to achieve this.

1 Like

I tried that before, but I did not remove the langRouter cache file.
Now I did that too and it seems to work… thanks a lot.
(I removed the ‘en’ and ‘de’ context keys)

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.