Details
-
Bug
-
Resolution: Unresolved
-
High
-
5.3.3, 5.4-dev
Description
If you create a language menu, for instance
<a href="{{ url( ez_route( params={"language": "eng-GB"} ) ) }}"> eng-GB </a> <a href="{{ url( ez_route( params={"language": "nor-NO"} ) ) }}"> nor-NO </a>
when accessing a legacy component( /content/search ) the it will return
An exception has been thrown during the rendering of a template ("When generating an eZ Publish legacy fallback route, "uri" parameter must be provided.")
This is due to the fact that in legacy_mode there is no Location, in the documentation https://doc.ez.no/display/EZP/Twig+Helper it refers that you can use
{{ ezpublish.legacy.get('content_info') }}
however, since /content/search isn't an object, it will always return NULL.