Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-76610

Group friendly URL blocks language changes when a locale is added to URL under locale.prepend.friendly.url.style=0 config

Details

    Description

      Preconditions

      1. Define following property to the portal-ext.properties: locale.prepend.friendly.url.style=0

      Steps

      1. Create a new web site: etic
      2. Configure languages for the site:
        • Default Language: English (United States)
        • Available Languages - Current: Spanish (Spain), Catalan (Spain) and English (United States)
      3. Add a page. "home" (English). "inicio" (Spanish). "inic" (Catalan)
      4. Add a page. "research" (English). "investigacion" (Spanish). "invest" (Catalan)
      5. Add a page. "tech" (English). "tecnologia" (Spanish). "tecnol" (Catalan)
      6. Add the language selector portlet in each page.

      Case A:

      1. Manually force the locale for the English in the browser URL, using group friendly URL: http://localhost:8080/en/web/etic
      2. Change the language to Spanish or Catalan using the language selector.

      Observed behaviour
      Language is not changed.
      URL is still http://localhost:8080/en/web/etic

      Expected behaviour
      Language is changed.

      Case B:

      1. Manually use following URL: http://localhost:8080/web/etic
      2. Change the language to Spanish or Catalan using the language selector.

      Expected and observed behaviour
      Language is changed.

      Case C:

      1. Manually force the locale for the English in the browser URL, pointing at home page: http://localhost:8080/en/web/etic/home
      2. Change the language to Spanish or Catalan using the language selector.

      Expected and observed behaviour
      Language is changed.

      Case D:

      1. Manually use following URL: http://localhost:8080/web/etic/home
      2. Change the language to Spanish or Catalan using the language selector.
      3. Manually force the locale for the English in the browser URL, pointing at same page: http://localhost:8080/en/web/etic/home
      4. Change the language to Spanish or Catalan using the language selector.

      Expected and observed behaviour
      Language is changed.

      Attachments

        Issue Links

          Activity

            People

              summer.zhang Summer Zhang
              sergio.alonso Sergio Alonso
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 24 weeks ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP35
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master