Bug #92326
closedRedirect URL ignores parameters
0%
Description
When creating a redirect and setting an additional parameter, it is ignored.
The link generated this way looks something like this:
t3://page?id=31 - - - &L=2
This will only redirect to the page with id 31 but not to the page with id 31 with language with ID 2.
From my understanding, this is a typical typolink and should work as such without anything special to be done.
What does work, therefore proving that redirect to a different language is possible (and even attaching other parameters) is this:
t3://page?id=31&L=2&foo=bar
This will neetly redirect to the page with id 31 with L=2 and parameter foo=bar in the url (even creating a cHash).
Thus it seems that the redirect does either not use typolink or handles it inproperly.
Updated by Guido Schmechel almost 4 years ago
Do you have activated "keep_query_parameters" for your target? The additionalParams will be only appended if this parameter is "on".
if (!empty($linkParameterParts['additionalParams']) && $matchedRedirect['keep_query_parameters']) {
$params = GeneralUtility::explodeUrl2Array($linkParameterParts['additionalParams']);
foreach ($params as $key => $value) {
$queryParams[$key] = $value;
}
}
Updated by Riccardo De Contardi over 3 years ago
- Status changed from New to Needs Feedback
Updated by Riccardo De Contardi about 3 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
Candidate for patchlevel)
No feedback since the last 90 days => closing this issue.
If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.
Thank you and best regards