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

Wrong canonical URL is sent for pageViewed event with display pages

    Details

      Description

      zPre Requirement(s):

      1. There is a DXP Portal registered as a datasource to AC
      2. There's at least 1 site created in DXP Portal synced to AC

       Step by step:

      1. Create a Display Page Template for Basic Web Contents
      2. Create a Web Content and associate it to the display page template create in step 1 (name it english).
      3. Log out and navigate to the recently created web page
      4. Inspect html > head attributes and look for the href attribute in the link with rel="canonical" (<link data-senna-track="temporary" href="*http://localhost:8080/en/english*" rel="canonical">)
      5. Log in again and navigate to the web page
      6. Inspect network communication and check the pageViewed event sent to AC
      7. Check canonicalURL value inside context ("canonicalUrl": "http://localhost:8080/english")**

      Actual Result(s):

      "canonicalUrl": "http://localhost:8080/english"

      Expected Result(s):**

      "canonicalUrl": "http://localhost:8080/en/english"

       

        Attachments

          Activity

            People

            Assignee:
            team-tango Product Team Tango
            Reporter:
            cristina.gonzalez Cristina Gonzalez
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.3.5 CE GA6
                7.3.10 DXP GA1
                7.3.X
                Master