Bug #94494

Redirect with respect_query_parameters and regexp

Added by Rudy Gnodde 4 months ago. Updated about 1 month ago.

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


Related issues

Related to TYPO3 Core - Bug #94167: Redirects module does not respect query string in regexp redirectsClosed2021-05-20

Actions
#1

Updated by Guido Schmechel 3 months ago

  • Related to Bug #94167: Redirects module does not respect query string in regexp redirects added
#2

Updated by Guido Schmechel 3 months ago

Hi Rudy, I have linked a possible issue with a patch. Does this perhaps help you? Or is this another case?

#3

Updated by Rudy Gnodde 2 months 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?

#4

Updated by Richard Haeser about 1 month ago

  • Status changed from New to Closed

Also available in: Atom PDF