Actions
Bug #89799
closedCapture groups for regex redirects are not respected in target
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-11-29
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Steps to reproduce:
- Create a redirect
- source: for example
#^/foo/(.*)#
- target:
http://another.domain/$1
- go to
your.domain/foo/bar
- Redirect is triggered but literally to to
http://another.domain/$1
Expected result: Redirect is made to http://another.domain/bar
Parsing the capture groups is not simply defect but actually not implemented at all. I flagged this explicitly as a bug (not as a feature) however, because the documentation does not clearly state this limitation and the module and GUI clearly allow regex-enabled redirects, so everything is suggesting that this must work and the backend editors and developers are left alone wasting their time to find out the hard way that this is not working - which is clearly a bug then.
Actions