Details
-
Bug
-
Resolution: Fixed
-
High
-
2014.07, 5.3.2, 5.4-dev
-
None
-
Castor Core S4
Description
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:
None of the chained routers were able to generate route: Route '' not found"
Steps to reproduce:
- Follow the documentation to implement a Language Switcher
- In the administration siteaccess, create a content and preview it
Notes:
A workaround is to modify the example template code slightly, and add the location to ez_route():
{% if location is defined %} {{ render( controller( 'MyBundle:Default:switchLanguage', {'routeRef': ez_route( location )} ) ) }} {% endif %}