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

URL for Locales with underscore are redirects instead of direct links

    Details

      Description

      DESCRIPTION
      In the head section of the HTML for a site that has alternate Locales with underscore pattern, URL is generated that is a redirect instead of an actual direct link

      STEPS TO REPRODUCE
      1. On 7.1 w/ fix pack 11, set up portal-ext w/ locales.enabled=zh_CN,en_US,en_AU,fr_FR,de_DE,it_IT,ja_JP,pt_BR,es_ES
      2. Start portal
      3. View browser tools to inspect the page
      4. Check the <head> section

       

      ACTUAL RESULTS
      This leads to hreflang tags being generated in the <head> of the html document e.g. like this:

      <link data-senna-track="temporary" href="http://localhost:8080/en_AU/" hreflang="en-AU" rel="alternate">

       

      EXPECTED RESULTS
      hreflang URL is a direct link. Ex. href for hreflang=en-AU needs to be  http://localhost:8080/en-AU

       

      BRANCH
      Reproduced
      cea3624e215d4231adf6e81438cfdf5d7b533f17
      MASTER
      Reproduced
      9edfcf63cb379c6e9067e723bc06727feed3b44d

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              il.kim Brian I. Kim
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 15 weeks ago

                  Packages

                  Version Package
                  7.1.10 DXP FP13
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  7.3.10 DXP GA1
                  Master