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

Friendly URL not used by Web Content when displayed from a Display Page

    Details

    • Flagged:
      Impediment
    • Story Points:
      6
    • Fix Priority:
      5

      Description

      Web Content should display using its canonical/friendly URL when displayed from a Display Page's Asset Publisher. Using Liferay Portal 6.1 describes the expected behavior in Setting Up Display Pages (http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen03-display-settings-0).

      1. Add a Page named "Content Display Page Test", selecting the Content Display Page template.
      2. Manage the Page, choose "Content Display Page Test", select Hidden, uncheck Automatically apply
      changes done to the page template Content Display Page. Click save.
      3. Add a Web Content instance named "Solar Flares" to the portal.
      4. Edit the Web Content and select Display Page on the right.
      5. Select the "Content Display Page Test" page as the Web Content's Display Page.
      6. Save the Web Content.
      7. Go to any page that has an Asset Publisher--except the "Content Display Page Test" display page. Click configuration for the Asset Publisher. In the Display Settings, select the "Abstracts" view type and choose the "View in a specific portlet" Asset Link Behavior. Save the configuration and close the Configuration window.
      8. Select the Web Content's "View" link from that Asset Publisher.

      Expected result:
      Web Content's URL starts with the friendly URL http://localhost:8080/web/guest/-/solar-flares

      If you don't configure the Asset Publishers asset link behavior to be "View in a specific portlet" the friendly URL will not be used when you click on the Web Content instance. The resulting URL will go to the full content URL like this:
      http://localhost:8080/web/guest/content-display-page-test/-/asset_publisher/Bg0wVTo5jytc/content/solar-flares?redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fcontent-display-page-test%3Fp_p_id%3D101_INSTANCE_Bg0wVTo5jytc%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-2%26p_p_col_pos%3D1%26p_p_col_count%3D2

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                luyang.tan Luyang Tan (Inactive)
                Reporter:
                james.hinkey James Hinkey
                Participants of an Issue:
                Recent user:
                Marta Elicegui
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.1.30 EE GA3