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

Blog entries fill the canonical url with wrong values

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.2.X, Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      3

      Description

      The canonical url indicates search engines whether some piece of content is unique or it is a copy of another page with the original content, so there shouldn't be 2 pages with different canononical urls publishing the same content. Also, if we have 2 URLs pointing to the same page, the canonical url should be the same in both cases.

       

      For blog entries, you can access each entry using the friendlyURL, like:

      http://localhost:8080/web/guest/home/-/blogs/my-blog-entry

       

      Or using the blog entry id:

      http://localhost:8080/web/guest/home/-/blogs/36149

      Current result

      Accessing the blog entry with http://localhost:8080/web/guest/home/-/blogs/my-blog-entry , you get as canonical URL: 

      <link data-senna-track="temporary" href="http://localhost:8080/home/-/blogs/ my-blog-entry" rel="canonical" />

       

      Accessing the blog entry with http://localhost:8080/web/guest/home/-/blogs/ 36149 , you get as canonical URL: 

      <link data-senna-track="temporary" href="http://localhost:8080/home/-/blogs/ 36149" rel="canonical" />

       

      Expected result

      Both URLs fill the canonical url as:

      <link data-senna-track="temporary" href="http://localhost:8080/home/-/blogs/ my-blog-entry" rel="canonical" />

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            pablo.agulla Pablo Agulla
            Participants of an Issue:
            Recent user:
            Alejandro Tardín
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              37 weeks, 3 days ago

                Packages

                Version Package