Details

      Description

      As a site admin

      I want Liferay to automatically manage redirection chains

      so that I don't impact negatively my SEO

       

      Scenario

      redirect1: source1 -> destination1

      redirect2: source2 -> destination1

      Now, if a user creates a redirection like: destination1 -> destination2

       

      redirect1 and redirect2 should be changed so:

      redirect1: source1 -> destination2

      redirect2: source2 -> destination2

      redirect3: destination1-> destination2

       

      Warn the user: suggest to fix redirections or create the loop.

      Design

      Figma Mockup

       

      Acceptance criteria 

       

      Given a site with a redirection from URL A to URL B

      When an admin tries to create a redirection from URL B to URL C

      Then she will be warned that a redirect chain might be created

       

      Given a site with a redirection from URL A to URL B

      And an admin tries to create a redirection from URL B to URL C

      When the user is warned that a redirect chain might be created

      Then she can decide to update the other redirections

       

      Given a site with a redirection from URL A to URL B

      And an admin tries to create a redirection from URL B to URL C

      When the user creates the redirection with the "update references" checked

      Then a redirection from URL B to URL C is created

      And the redirection from URL A to URL B is updated to be a redirection from URL A to URL C

      Test Scenarios

      ID Test Priority Test Scenarios Covered by Backend (Unit/Integration)? Test to add
      5.1 5 User is warned when a redirect chain might be created YES* Redirect#AddEntryWithoutReferences
      5.2 4 User can decide not to update the other redirections by not checking "update references" YES* Redirect#AddEntryWithoutReferences
      5.3 4 Redirection loop is created when the user creates a redirection without "update references" checked NO Redirect#AddEntryWithoutReferences
      5.4 5 User can decide to update the other redirections by checking "update references" YES* Redirect#AddEntryWithReferences
      5.5 5 Redirection is created when the user creates a redirection with "update references" checked YES* Redirect#AddEntryWithReferences
      5.6 5 References are updated to the new destination URL when the user creates a redirection with "update references" checked YES Redirect#AddEntryWithReferences
      • There are tests for the service methods involved in all those operatios but not end to end.
         

        Attachments

          Activity

            People

            Assignee:
            austin.chiang Austin Chiang
            Reporter:
            pablo.agulla Pablo Agulla
            Engineering Assignee:
            SE Support
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master