Extra check to compare / validate same source and destination URLs

Created on 21 June 2024, 7 days ago

Problem/Motivation

If by mistake the csv file contains a source url that starts with a "/" and the destination is the same one
(ie source: /products, destination: /products) the csv file is uploaded and the redirect is added.
This leads to a "services unavailable" page when visiting /products, due to Redirect loop.

Steps to reproduce

Upload a file with the exact same source and destination urls.

Proposed resolution

Add an extra check to MigrateRedirectForm.php, validateForm method
to check source and destination urls, without trimming.

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡ทGreece fotisp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024