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 #1

Updated by Guido Schmechel over 3 years ago

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

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?

Actions #3

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 #4

Updated by Richard Haeser about 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF