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

LayoutsTree can't use full private page URLs

    Details

      Description

      Problem:

      layoutsTree is only publicizing the friendly URL of the layouts, which is "testpage" in our reproduction steps. This is not enough to create a fully functional URL.

      Solution:

      Add a new attribute, <fullURL> to the JSONObject, which has the fully functional URL and use that in the layout tree template.

       

      Reproduction on 7.0.x:

      1. Log in as admin.
      2. Create a new blank site ("testsite").
      3. Add a Private page ("testpage").
      4. In the created site, add a new web content ("testcontent").
      5. Type in any word in the body of the editor, then click that word.
      6. Click the Link button, then the Folder icon.
      7. Go to Private Layout tab and select the previously created private page (testpage), then save and publish the content
      8. Add a new Private page ("publishing") and add a WCD portlet on it, then display the content in that portlet
      9. Click the link in the displayed content

      Result. You are redirected to "testpage", however, the URL only shows http://localhost:8080/testpage when it should show http://localhost:8080/group/testsite/testpage

      7.0.x - reproduced
      master - layoutsTree isn't used in this case, but the code is wrong, just as on 7.0.x.

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              balazs.safrany-kovalik Balázs Sáfrány-Kovalik
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP40
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master