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

Canonical and Alternate URLS are generated wrong

    Details

      Description

      • The canonical tag should always be generated for any public page when the user is not signed in (not in the rest of the cases)
      • The alternate tags should be shown in the previous scenario when viewing the default language. However, these can be disabled from the Manage Page --> Seo section.
      • The previous implementation did not consider well the virtual hosts, so the urls were wrong.

      In order to test it, search for tags like these in the Page Source Code (at the top):
      <link href="http://localhost:8585" rel="canonical" />
      <link href="http://localhost:8585/ar" hreflang="ar-SA" rel="alternate" />
      <link href="http://localhost:8585/eu" hreflang="eu-ES" rel="alternate" />

      ...etc

        Attachments

          Activity

            People

            Assignee:
            ginson.ren Ginson Ren
            Reporter:
            julio.camarero Julio Camarero (Inactive)
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 35 weeks ago

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.20 EE GA2
                6.2.0 CE M2