If you are working in a multi-language space managed by Scroll Translations, some pages in the space may not always be available in all the languages configured for that space.
When viewing the space through a Viewport, if users try to view a page in a language that hasn't been created for that page, then they are met with a 404 error.
Set a fallback page
To solve this issue and avoid the 404 error, you can redirect users to a fallback page – to the same page but in the space's default language.
It is not currently possible to remove non-relevant languages from the language picker.
To set a fallback page, insert the following snippet of code into the Viewport's error.vm head tag:
The code will look like this in the error.vm file: