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

URLs generated by the Asset publisher are not SEO friendly as integrate the version

    Details

    • Fix Priority:
      3

      Description

      For SEO, having clear and simple URLs that communicate correctly how the site is built, linked internally, etc is very important. 

       

      Currently, the urls generated by the asset publisher to view an individual content look like this for versioned assets:

       

      <link data-senna-track="temporary" href="http://localhost:8080/-/my-content/1.7" rel="canonical" />

       

      If a content creator modifies the content, the next time a user visits the content, the url returned would be:

      <link data-senna-track="temporary" href="http://localhost:8080/-/my-content/1.8" rel="canonical" />

       

      For Google and other search engines, these two URLs, though being for the same content, will be indexed as two different pages, so all the ranking gained by the 1.7 version will be lost for the 1.8.

       

      Steps to reproduce:

       

      1.- Create another page (page1), add an asset publisher and configure it with "Asset link behavior" set to "view in context".

      2.- Create a page (page2), add an asset publisher and configure it with "Set as the Default Asset Publisher for This Page" to true.

      3- Create a web content and set as display page template "page2".

      4.- Now, go to page1 and click on the web content title and check the url in the browser tab and in the source code for the "canonical" meta tag.

       

      Current behavior:

       

      URL: "http://localhost:8080/-/my-content/1.8

       

      Expected behavior:

       

      URL: "http://localhost:8080/-/my-content

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              pablo.agulla Pablo Agulla
              Participants of an Issue:
              Recent user:
              David Gutiérrez Mesa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package