Issue Bug Closed

#94494Redirect with respect_query_parameters and regexp

Rudy Gnodde 07/06/21, 14:47 updated 09/08/21, 14:39

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.