Issue Bug Closed

#100791EXT:redirect infinite loop on target "/"

Rafael Kähm 05/02/23, 20:46 updated 07/09/24, 12:56

Description

The redirect target MUST NOT be empty if it is defined as “/”, because redirect to empty “” string as target leads to the redirects to the requested URL again.

How to reproduce:

Install EXT:redirects

composer require typo3/cms-redirects

Create a redirect entry via backend for any source(e.g. “/rfc/is/strange/”) but / as target.

Open Firefox dev tools and navigate to network tab, and call the created URL.

The redirect endless loop error is triggered.

Expected behavior:

The redirect target must stay as it is defined in sys_redirect.target record.

Screenshot from Firefox dev tools:

!Bildschirmfoto vom 2023-05-02 22-43-11.png!

Reviews 3