When following the documentation for Language Switcher feature at https://doc.ez.no/display/EZP/Language+Switcher , pages are displayed correctly for frontend siteaccesses.
However, content preview (in the legacy administration interface) fails with an exception:
- Follow the documentation to implement a Language Switcher
- In the administration siteaccess, create a content and preview it
A workaround is to modify the example template code slightly, and add the location to ez_route():