Project

General

Profile

Actions

Bug #94494

closed

Redirect with respect_query_parameters and regexp

Added by Rudy Gnodde over 3 years ago. Updated about 3 years 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 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF