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

Issue when creating a page named the same as a page's old friendlyURL

    Details

      Description

      Issue
      There is a conflict of behavior when creating a new page depending on the use case.

      Steps to Reproduce

      1. Create a content page named "test"
      2. Observe the friendly URL showing "/test"
      3. Create another page named "test" as well
      4. Observe the friendly URL created for the page is incremented to "/test1"
      5. Go into the configuration of the second page (with friendly URL "/test1") and rename it "test2", and change its friendly URL to "/test2"
      6. Go back to Site Builder > Pages > Click the + button, and add a new page called "test1"

       Expected Result
      New page "test1" is created successfully and it's friendlyURL is incremented to "/test11" as "/test1" is already in use.

       Actual Behavior

      The new page is created with friendly URL "/test1-1" which is in conflict with the behavior in step 4

       

      Another issue was found that is solved through this fix:

      Steps to Reproduce

      1. Create a new page test, takes the friendly URL /test
      2. Change the friendly URL of the page to /new-test,  /test becomes an entry in the friendly URL history
      3. Create a new page test, takes the friendly URL /test-1 
      4. Navigate to http://localhost:8080/en/web/guest/test

       
       Expected Result
      We are navigated to http://localhost:8080/en/web/guest/new-test
       Actual Behavior
      We are navigated to http://localhost:8080/en/web/guest/test-1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              austin.chiang Austin Chiang
              Reporter:
              noor.najjar Noor Najjar
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Engineering Assignee:
              Noor Najjar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.4.3.10 CE GA10
                  7.4.3.11 CE GA11
                  Master