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

Route ez_urlalias with siteaccess parameter on root location works not correctly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 5.4.1
    • Linux Ubuntu, Apache 2.4

    Description

      Background:
      Siteaccessmatcher are Map\URI with simple prefixes.

      language-switch:

      <a href="{{ url( 'ez_urlalias', { 'locationId' : locationId, 'siteaccess' : siteaccess }) }}" >
      

      On all locations it works fine, create an urlalias prefixed with the correct siteaccess prefix. Only if locationId is the root node/location it creates a wrong system link like:

      http://foobar.local/es/de/content/location/2
      

      Note:

      • the siteaccess prefix is twice
      • instead of an url alias the system path is used

      The same result if I use: all links are fine, only the root location is wrong.

      <a href="{{ url( ez_route( location , { 'language' : 'fre-FR'})) }}"  >
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            shor.tcut shor.tcut
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: