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

Control Panel not being displayed when selecting locale with "-" in the URL

    Details

    • Branch Version/s:
      7.1.x, 7.0.x
    • Backported to Branch:
      Committed
    • Story Points:
      1
    • Fix Priority:
      3
    • JDK:
      Oracle Sun JDK 8
    • Application Servers:
      Apache Tomcat 9.0.x
    • Browsers:
      Chrome (latest)
    • Databases:
      MySQL 5.7
    • Device Type:
      Desktop
    • Sprint:
      U&SM | Sprint 9

      Description

      After the change added by the issue https://issues.liferay.com/browse/LPS-78738 , when selecting a language that makes the URL to include a locale with a "-", like for example "en-GB", this breaks the Control Panel.

      Steps to reproduce:

      1. Set this property in portal-ext.properties: locale.prepend.friendly.url.style=2
      2. Set this property in portal-ext.properties: locales.enabled=en_US,en_GB,nl_NL,nl_BE
      3. Add a Language Selector widget to any page of a site
      4. Select british english or belgian nederlands
      5. Click on the menu link to access the Control Panel

      Actual result:
      The Control Panel is broken.

      Expected result:
      The Control Panel is displayed as usual.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  47 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP76
                  7.0.10.11 DXP SP11
                  7.0.X
                  7.1.10 DXP FP8
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master