Actions
Bug #94494
closedRedirect with respect_query_parameters and regexp
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-07-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
For redirects you can set respect_query_parameters, but this only works for flat source paths. If you use a regexp for your source path it does not work.
Steps to reproduce
1. Create a new redirect
2. Set "Source path" to "#^/test\?test=(.*)$#"
3. Turn on "Respect GET Parameters"
4. Turn on "Is regular expression?"
5. Set "Target" to "https://typo3.org"
6. Save the redirect
7. Go to https://domain/test?test=test
Result: 404 (unless there's a page for /test of course)
Expected: Redirect to https://typo3.org
Updated by Guido Schmechel over 3 years ago
- Related to Bug #94167: Redirects module does not respect query string in regexp redirects added
Updated by Guido Schmechel over 3 years ago
Hi Rudy, I have linked a possible issue with a patch. Does this perhaps help you? Or is this another case?
Updated by Rudy Gnodde over 3 years ago
Yes, that's the same issue.
I can't seem to close this issue myself. Can someone close it, as this is a duplicate?
Actions