Actions
Bug #100791
closedEXT:redirect infinite loop on target "/"
Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling & Redirect Handling
Target version:
Start date:
2023-05-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:
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!
Files
Actions