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

Localized friendly url redirect fails for a cached page

    Details

    • Fix Priority:
      4

      Description

      Reproduction Steps:

      1.In your portal-ext.properties file, set up these properties:

      locales=fi_FI,en_US
      locales.enabled=fi_FI,en_US
      company.default.locale=fi_FI
      locale.prepend.friendly.url.style=0

      2. Start the portal and create a new page:
      Page name can be: test1
      Click "Add Page"

      3. Configure the page to have an English and a Finnish friendly url by clicking on the 3 dots next to the page name (test1), and then select: "Configure Page"
      In the "Friendly URL" section, you can define the language specific page names by entering this for example:

      • click on the Finnish icon:
        the "http://localhost:8080/web/guest" part is pre-filled, you just have to type: "/fitest"
      • click on the English icon:
        the "http://localhost:8080/web/guest" part is pre-filled, you just have to type: "/entest"

      4. Visit the fitest page and:
      4.1 Type "en" in front of the "/web/guest/fitest" in the url, so it will become:
      http://localhost:8080/en/web/guest/fitest
      The portal will redirect to:
      http://localhost:8080/web/guest/entest
      4.2 Type "fi" in front of the "/web/guest/entest" in the url, so it will become:
      http://localhost:8080/fi/web/guest/entest
      The portal will redirect to:
      http://localhost:8080/web/guest/fitest
      4.3 Again, type "en" in front of the "/web/guest/fitest" in the url, so it will become:
      http://localhost:8080/en/web/guest/fitest
      This time, the portal will not redirect, it will stay on the English page, unless you clear out your browser's cache.

      Expected Behavior:
      the portal should redirect to the English version of the page.

      Note:
      redirection works when setting:
      locale.prepend.friendly.url.style=2

      This issue might be strongly related to:
      https://issues.liferay.com/browse/LPS-41660

      Tested on @7ec41e78919881825475eb770b8922a01bfafeba

        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:
                  2 years, 5 weeks, 4 days ago

                  Packages

                  Version Package