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

Canonical URL for pages on virtual host drops page name

    Details

      Description

      Reproductions steps:

      1. Add "127.0.0.1 test.test" to your host file
      2. Create a new page "page1", and "page2" ( as page1 is the first-page canonicalURLs are not including the layoutURL )
      3. From the left side menu, Go to Configuration > Site Settings, General tab: Site URL section
      4. Set "test.test" as the Public Pages virtual host
      5. log out
      6. Visit test.test:8080/page2 and check its source

      Expected result: Canonical url has page2 in it

      <link data-senna-track="temporary" href="http://test.test:8080/page2" rel="canonical" />
      

      Actual result: Canonical url does not have page2 in it

      <link data-senna-track="temporary" href="http://test.test:8080" rel="canonical" />
      

        Attachments

        1. Capture.PNG
          Capture.PNG
          36 kB
        2. fixed.png
          fixed.png
          19 kB

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              balazs.safrany-kovalik Balázs Sáfrány-Kovalik
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Attila Bakay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP12
                  7.2.X
                  7.3.X
                  7.4.0 CE GA1
                  Master