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

Wrong redirect for Web Content when Workflow is enabled

Details

    Description

      Steps to reproduce:

      1. Configure the classic display page by Creating a new Content page called "Display Page" and Adding an asset publisher then setting the following options in the "Display Settings" tab of the portlet configuration
      • Set as the Default Asset Publisher for This Page: true
      1. Go to Control Panel -> Control & Data -> Web Content, click + and select Basic Web Content
      2. Set the Web Content title and content to "Article 1"
      3. Set Display Page Template on the right-hand side of the form to "Specific Display Page Template" and select the previously created "Display Page" and Publish the article
      4. Create another article the same way titled "Article 2"
      5. Navigate to the first article using its unique friendlyUrl e.g."http://localhost:8080/web/guest/-/article-1"
      6. Click the context menu and choose "Edit" and then click "Publish" (no changes required)
      7. Observe that Liferay goes back to the updated Article and the URL changes back to "http://localhost:8080/web/guest/-/article-1"
      8. Go to Control Panel -> Configuration -> Workflow and enable the default Single Approver workflow for Web Content Articles
      9. Navigate to the second article using its unique friendlyUrl e.g. "http://localhost:8080/web/guest/-/article-2"
      10. Click the context menu and choose "Edit" and then click "Publish" (no changes required)

      Actual behavior: Liferay loses the original friendlyUrl (the browser URL shows e.g. http://localhost:8080/en/web/guest/display-page/-/asset_publisher/yebj/) and shows the generic Display Page with a random Web Content article selected by the Asset Publisher (usually the most recently modified so in this case Article 1).
      Above happens not only to the "Publish"/"Submit for Publication" button but also to "Cancel" or the back arrow.

      Expected behavior: Liferay goes back to the Article (old version as the new one is still pending in the workflow) and the URL changes back to"http://localhost:8080/web/guest/-/article-2"

      Attachments

        Activity

          People

            diego.hu Diego Hu
            istvan.dezsi Istvan Dezsi
            Kiyoshi Lee Kiyoshi Lee
            Istvan Dezsi Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 31 weeks, 1 day ago

              Packages

                Version Package
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                7.4.3.5 CE GA5
                7.4.13 DXP U1
                Master