#100791EXT:redirect infinite loop on target "/"
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!