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

Portal redirects guests to the default language when locale.prepend.friendly.url.style=2 and locale.default.request=true

    Details

    • Story Points:
      0.25
    • Fix Priority:
      3

      Description

      Description
      Portal redirects guests to the default language instead of the preferred language, when locale.prepend.friendly.url.style=2 and locale.default.request=true are set

      Steps to reproduce

      1. Setup EE6.2 and install portal-168
      2. Add the following properties to portal-ext.properties
        locale.prepend.friendly.url.style=2
        locale.default.request=true
      3. Start Liferay
      4. Make sure that the default portal language is "en_US"
      5. Configure browser language preferences, and set it to Japanese(ja)
      6. Delete browser cookies and caches
      7. Access to http://localhost:8080 as Guest user

      Actual result
      You get redirected to http://localhost:8080/en/ (default language)

      Expected result
      You get redirected to http://localhost:8080/ja/ (browser language preferences)

      Note
      I tested this issue with the latest Google Chrome.
      This issue was fixed in LPS-35039, so it seems that this is regression bug.
      It seems to be related to "I18nFilter.java".

      Note2
      With "locale.prepend.friendly.url.style=3" (default), issue does not happen, page is displayed in Japanese.

      Reproduced in
      Master: Commit: afff6075f732b4bc63430385617c58c416735e58
      6.2.x: Commit: d96477c175dbba21ee6567c76209d5d5d1725c91
      7.0 DE-59

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hai.yu Hai Yu
                Reporter:
                david.zhang David Zhang (Inactive)
                Participants of an Issue:
                Recent user:
                Michael Saechang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 weeks, 4 days ago