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

"Link to page" items in web content structure are rendered incorrectly after upgrade when link is embedded in another element

    Details

      Description

      DESCRIPTION
      Upgrading 6.0 SP1 to 6.2 SP5 or higher, web content link to page URLs are in a different format.

      STEPS TO REPRODUCE
      1. Start up a clean bundle of 6.0 SP1
      2. Create a new web content structure
      3. Under XML Schema Definition, add a new row named "text" and configure it to have a 'Text' data type
      4. Click the "+" within the "text" element to add a new row named "link" and configure it to have a 'Link to Page' data type
      5. Create a web content template for that structure with the following content: $text.link.getFriendlyUrl()
      6. Add a new web content article based on the structure and template, linking the "Welcome" page to the link field
      7. Add a web content display to /web/guest/home and select the article created in step #7
      8. Confirm that the web content display shows /web/guest/home
      9. Shut down the server
      10. Upgrade to Liferay 6.2 with SP5 or higher, making sure to use the same database
      11. Visit /web/guest/home

      EXPECTED RESULTS
      Expected behavior is that the web content display will show /web/guest/home

      ACTUAL RESULTS
      Actual behavior is that the web content display will show /web/groupId/layoutId.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 39 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M3