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

Avoid redirection chains when destinationURL is the same as other origin URLs

    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

      Now, if a user creates a redirection like: source3 -> source1

       

      redirect2 should be changed so:

      redirect1: source3 -> destination1

       

      Warn the user with the following message:

       

      “This redirect points to the source URL of another redirect. This will create a redirect chain so that users will be redirected multiple times before reaching the destination.

      Update this redirect to avoid this chain."

       

       Text for the checkbox: Update Redirect

      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 C to URL A

      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 C to URL A

      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 C to URL A

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

      Then a redirection from URL C to URL B is created

      Test Scenarios

      ID Test Priority Test Scenarios Covered by Backend (Unit/Integration)? Test to add
      5.7 5 A warning message appears when the user creates a new redirect that will cause a chain YES Manual; Automate later in LRQA-58630
      5.8 5 A warning message appears when the user updates a new redirect that will cause a chain YES Manual; Automate later in LRQA-58630
      5.9 5 Redirect can be created without updating references YES Manual; Automate later in LRQA-58630
      5.10 5 Redirect can be created with references updated YES Manual; Automate later in LRQA-58630
      5.11 4 The new destination URL is updated when a redirect is created with references updated YES Manual; Automate later in LRQA-58630

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Master