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

Unnecessary localization gets appended to alternate default locale URL of the home page

    Details

      Description

      Steps to reproduce:

      1. Start a latest master bundle
      2. Create a site
      3. Create two pages, called Home and Test Page
      4. Go to the site's configuration, set a virtual host for public pages e.g. www.test.com
      5. Access the Test Page with the virtual host URL (www.test.com:8080/test-page)
      6. Search for the block that contains "hreflang="en-US", verify that "/en" is not appended to the alternate URL of "en-US".
        Result:
        <link data-senna-track="temporary" 
        href="http&#x3a;&#x2f;&#x2f;www&#x2e;test&#x2e;com&#x3a;8080&#x2f;test-page" 
        hreflang="en-US" rel="alternate" />
        
      1. Access Home page with the virtual host URL (www.test.com:8080)
      2. Search for the block that contains "hreflang="en-US"
        Result:
         <link data-senna-track="temporary" 
        href="http&#x3a;&#x2f;&#x2f;www&#x2e;test&#x2e;com&#x3a;8080&#x2f;en" 
        hreflang="en-US" rel="alternate" />
        

      Actual behavior: "/en" is appended at the home page

      Expected behavior: "/en" is not appended at the home page

      7.0x @ commit (95fbd247632916f4fc0943e6481ce5feebdf70e8) reproduced

      master @ commit (ff3286fd16693d3660fe117d8001def232fe3c90) reproduced

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            vendel.toreki Vendel Töreki
            Participants of an Issue:
            Recent user:
            Joel Garman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 5 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP89
                7.0.10.13 DXP SP13
                7.0.X
                7.1.10 DXP FP16
                7.1.X
                7.2.10 DXP FP4
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master