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

getFriendlyUrl for Link to Page field does not work if content is in another group

Details

    Description

      Reproduction steps:

      1. Create Site "A"
      2. Create a structure with a Link to Page field
      3. Create a template for the structure using the getFriendlyUrl method, e.g.:
      <a href=" ${Link_to_Page1738.getFriendlyUrl()}">
      ${Link_to_Page1738.getFriendlyUrl()}
      </a>
      4. Create a Web Content with the structure, select a page from Site "A"
      5. Create Site "B"
      6. Create a page and put a Web Content Display portlet to it
      7. Select the previously created Web Content to display

      Result:
      The link is incorrect.
      The getFriendlyUrl() method is looking for the layout in the groupId which belongs to Site "B".

      Attachments

        Issue Links

          Activity

            People

              lu.liu Lu Liu
              tamas.molnar Tamas Molnar
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 3 weeks, 4 days ago

                Packages

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