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

Switch language class does not support PathPrefix

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 4.7.0, 5.0, 5.1, 2013.07, 5.2, 2013.09
    • Language
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            8bc12bd8-4b86-4b97-8f96-13978c04c7fa@accounts.ibexa.co Jérémy Poulain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: