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

A redirect with status 301 happens for URLs with non-default locales

    Details

      Description

      Reproduction Steps:

      1. Create any virtualhos (or just using localhost is fine also):

      https://www.test.com/en

      Actual Result: The link is redirected to https://www.test.com/en/web/guest

      Expected Result: The link should be redirected correctly.

      This can be tested with the Hreflang testing tool site at https://app.hreflang.org/

      2. Type in www.liferay.com and start the test.

      Result: A redirection error appears:
      Bad Page (301/302 Redirect, 404, 503 etc.)

      Expected Result: The link should be redirected correctly.

      We found the following links of the customer's site:

      • <link data-senna-track="temporary" href="https://www.test.com/en" hreflang="en-US" rel="alternate">
      • <link data-senna-track="temporary" href="https://www.test.com" hreflang="x-default" rel="alternate">
      • <link data-senna-track="temporary" href="https://www.test.com/de" hreflang="de-DE" rel="alternate">

      After testing these links using the Hreflang testing tool we found that the link:

      <link data-senna-track="temporary" href="https://www.test.com" hreflang="x-default" rel="alternate"> is correct.

      However, the other 2 links are incorrect.

        Attachments

          Activity

            People

            Assignee:
            austin.chiang Austin Chiang
            Reporter:
            norbert.kocsis Norbert Kocsis (Inactive)
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Norbert Kocsis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 weeks, 1 day ago

                Packages

                Version Package
                7.1.X
                7.2.10 DXP FP8
                7.2.10.2 DXP SP3
                7.2.X
                7.3.4 CE GA5
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master