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

URLs are not well generated when locale.prepend.friendly.url.style=2

    Details

      Description

      Reproduction Steps for Master/7.0.x:

      1. Set locale.prepend.friendly.url.style=2 in portal-ext.properties file
      2. Create a new site AA
      3. Create a new page BB in the site AA created previously
      4. Logout
      5. Go to http://localhost:8080/en/web/aa/bb
      6. Inspect the HTML code.

      Actual result:

      <link data-senna-track="temporary" href="http://localhost:8080/web/aa/en" rel="canonical">

      Expected result:

      <link data-senna-track="temporary" href="http://localhost:8080/en/web/aa" rel="canonical">

      Reproduction Steps 6.2.x:

      1. Set locale.prepend.friendly.url.style=2 in portal-ext.properties file
      2. Create a new site AA
      3. Create a new page BB in the site AA created previously
      4. Click in View Pages

      Actual result:

      Expected result:

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 47 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.X EE
                  7.0.0 DXP FP37
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X