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

Alternate URLs are not generated properly

    Details

      Description

      Steps to reproduce:

      1. Create a new page One
      2. Edit this page to set the following friendly urls:
        1. en_US: /one
        2. es_ES: /uno
        3. pt_BR: /um
      3. Sign out
      4. Go to page One
      5. Inspect the HTML code

      Actual result:

      <link data-senna-track="temporary" href="http://localhost:8080/zh/one" hreflang="zh-CN" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/es/uno" hreflang="es-ES" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/ja/uno" hreflang="ja-JP" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/iw/uno" hreflang="iw-IL" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/nl/uno" hreflang="nl-NL" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/fi/uno" hreflang="fi-FI" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/ca/uno" hreflang="ca-ES" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/hu/uno" hreflang="hu-HU" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/fr/uno" hreflang="fr-FR" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/one" hreflang="x-default" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/uno" hreflang="en-US" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/pt/uno" hreflang="pt-BR" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/de/uno" hreflang="de-DE" rel="alternate">

      Expected result:

      <link data-senna-track="temporary" href="http://localhost:8080/zh/one" hreflang="zh-CN" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/es/uno" hreflang="es-ES" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/ja/one" hreflang="ja-JP" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/iw/one" hreflang="iw-IL" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/nl/one" hreflang="nl-NL" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/fi/one" hreflang="fi-FI" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/ca/one" hreflang="ca-ES" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/hu/one" hreflang="hu-HU" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/fr/one" hreflang="fr-FR" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/one" hreflang="x-default" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/one" hreflang="en-US" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/pt/um" hreflang="pt-BR" rel="alternate">
      <link data-senna-track="temporary" href="http://localhost:8080/de/one" hreflang="de-DE" rel="alternate">

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hong.zhao Hong Zhao
                Reporter:
                daniel.couso Daniel Couso
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 4 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP28
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master