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

Switch language class does not support PathPrefix

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 4.7.0, 5.0, 5.1, 2013.07, 5.2, 2013.09
    • Fix Version/s: None
    • Component/s: Language
    • Labels:
    • Environment:

      Any

      Description

      Let's say we have in a single eZ instance two websites, each one with two siteaccess (one for french content, one for english content).

      The second website was created by duplicating the first one.

      The siteacesses are :

      Siteaccess #1 : com_en responding on http://www.example.com/en with ContentObjectLocale=eng-GB and PathPrefix=path1
      Siteaccess #2 : com_fr responding on http://www.example.com/fr with ContentObjectLocale=fre-FR and PathPrefix=path1

      Siteaccess #3 : net_en responding on http://www.example.net/en with ContentObjectLocale=eng-GB and PathPrefix=path2
      Siteaccess #4 : net_fr responding on http://www.example.net/fr with ContentObjectLocale=fre-FR and PathPrefix=path2

      The path tree is

      Content root node

      • path1
        • node1 : with two languages (eng-GB, fre-FR) and two url_alias : ("Our-main-jobs", "Nos-principaux-metiers")
      • path2
        • node2 : with two languages (eng-GB, fre-FR) and two url_alias : ("Our-main-jobs", "Nos-principaux-metiers")

      The switch language fonctionnality does not handle PathPrefix.

      http://www.example.net/fr/switchlanguage/to/net_en/Nos-principaux-metiers will send you to http://www.example.net/en/path1/Our-main-jobs

      It should redirect to http://www.example.net/en/Our-main-jobs

        Activity

        Hide
        Bertrand Dunogier added a comment - - edited

        Paulo Nunes could you please plan to have this tested ? If confirmed, we should fix it.

        Show
        Bertrand Dunogier added a comment - - edited Paulo Nunes could you please plan to have this tested ? If confirmed, we should fix it.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jérémy Poulain
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: