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

"Link to Page" field's getUrl method doesn't work properly

    Details

      Description

      Reproduction steps:

      1. Create a site
      2. Create a public and a private page: "testPublicPage", "testPrivatePage"
      3. Create a structure with a "Link to Page" field
      4. Create a template for the structure: clicking on the "Link to Page" field would create a template which contains a link, e.g.:

      <a href="$\{Link_to_Page1899.getFriendlyUrl()}">
      

      Replace the method name to getUrl:

      <a href="$\{Link_to_Page1899.getUrl()}">
      

      5. Create a Web Content with the structure, and link the "testPrivatePage"
      6. Put a Web Content Display to "testPublicPage" and select the previously created Web Content

      Result: the link contains the public servlet mapping (/web), however it should point to a private page

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              tamas.molnar Tamas Molnar
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 7 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1