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

As a blog author, I want to be able to set the URL of an entry

    Details

    • Sprint:
      Rhodochrosite 11/22-12/6

      Description

      Motive

      Currently, the URL of a blog entry is determined by its title at the moment it is published and it cannot be changed afterwards. This can be a limitation because if the blogger wants to update the blog entry title afterwards, the friendly url will still be related to the old title.

      The aim of this story is to allow users to CHOOSE the friendly URL before the entry is published, and be able to CHANGE IT later.

      Acceptance Tests

      • By default, the friendly url should be based on the title of the blog entry unless the blogger specifies otherwise by manually introducing a friendly url. If the blogger introduces a friendly url we should use it.
      • When the blogger changes the friendly url to a new one, all the previous urls should still work and they should automatically redirect to the latest one to ensure that SEO doesn't get impacted by these friendly url changes.
      • If a user updates the friendly url to another one that is in use (as main or former URL) by another entry, he shouldn't be allowed to do it and should get a notification about it. Nevertheless, if this URL is a former URL of the same entry, it should be able to do it.

      Uses Cases

      Create a new blogs entry with a default, autogenerated, friendly URL

      1. Fill the title (required to generate the friendly URL)
      2. Fill the content
      3. Publish the blogs entry

      Expected: The blogs entry is created with a friendly URL that is roughly equivalent to the title (e.g. title: "foo bar" -> url: "foo-bar"). The blogs entry is accessible through that URL.

      Needs integration test

      Create a new blogs entry with a custom URL title

      1. Fill the title
      2. Fill the content
      3. Fill in a custom URL title
      4. Publish the blogs entry

      Expected: The blogs entry is created with a friendly URL that is roughly equivalent to the provided one. Note that there may be some changes due to URL normalization. The blogs entry is accessible through that URL.

      Needs integration test

      Change the URL title of a Blogs entry

      1. Create a new blogs entry as in the use case "Create a new blogs entry with a default, autogenerated, friendly URL"
      2. Go edit the blogs entry
      3. Update the custom URL title
      4. Publish the blogs entry

      Expected:

      1. The blogs entry is created with a friendly URL that is roughly equivalent to the provided one. The blogs entry is accessible through that URL.
      2. The blogs entry is accessible through the old URL, but a 302 status is returned and the user is redirected to the new one.

      Needs integration test; Needs functional test to verify the redirection is correctly performed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nikki.prudencio Nikki Prudencio
              Reporter:
              fernando.lopez Fernando Lopez (Inactive)
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.0 M6
                  7.1.X
                  Master