Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23222

LanguageSwitcher does not work in content preview

    XMLWordPrintable

    Details

    • Sprint:
      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:
      1. Follow the documentation to implement a Language Switcher
      2. 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 %}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m