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

Content not automatically added to the page after hard refresh

    Details

      Description

      1. Set javascript.single.page.application.enabled=true in portal properties
      2. Start up the portal and sign in as [email protected]
      3. Add a new Widget Page
      4. Click "+" button at the top, select "Add New" in the product menu, and choose to add a new Basic Web Content
      5. Provide a title and some content and save
      6. Confirm the web content that you created appears on the page
      7. Click "+" button at the top, select "Add New" in the product menu, and choose to add a new Basic Web Content
      8. Hard refresh the page (Shift+F5)
      9. Provide a title and some content and save

      Expectation is that the portal behaves the same way as it did when you didn't hard refresh the page.

      Actual behavior is that content is not automatically added to the page.

      This occurs because the event listener that is listening to the AddContent:addPortlet event when the page isn't registered if you refresh the page while on the add content screen (it was added when you accessed the side bar, and stayed in memory due to the SPA navigation), so there is nothing that notices the attempt to add the page.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              minhchau.dang Minhchau Dang
              Participants of an Issue:
              Recent user:
              Eudaldo Alonso
              Engineering Assignee:
              Daniel Couso
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                39 weeks, 5 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP9