Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.3.X, Master
-
7.3.x
-
Committed
-
3
Description
Steps to reproduce:
- 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
- Go to Control Panel -> Control & Data -> Web Content, click + and select Basic Web Content
- Set the Web Content title and content to "Article 1"
- 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
- Create another article the same way titled "Article 2"
- Navigate to the first article using its unique friendlyUrl e.g."http://localhost:8080/web/guest/-/article-1"
- Click the context menu and choose "Edit" and then click "Publish" (no changes required)
- Observe that Liferay goes back to the updated Article and the URL changes back to "http://localhost:8080/web/guest/-/article-1"
- Go to Control Panel -> Configuration -> Workflow and enable the default Single Approver workflow for Web Content Articles
- Navigate to the second article using its unique friendlyUrl e.g. "http://localhost:8080/web/guest/-/article-2"
- 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"