Issue Bug Closed

#88963RedirectService is not taking additional parameters

Manfred Mirsch 08/15/19, 20:19 updated 02/27/20, 12:42

Description

When using additinal parameters in typolink as link target these parameters are not appended in redirect.

E.g. my link target as typolink is:
t3://page?uid=2 – - – q=support

When I add this as link target in redirect entry, I can see the correct link generated in Redirects backend module in column “destination”.

But klicking the preview or entering the source_url, the additional parameter “q=support” is not used.

I found the problem in \TYPO3\CMS\Redirects\Service\RedirectService::getTargetUrl().

Because the source_path itself has no query parameters, they are not commited when this method is called at:
TYPO3\CMS\Redirects\Http\Middleware\RedirectHandler::process()
#60 $url = $redirectService->getTargetUrl($matchedRedirect, $request->getQueryParams(), $request->getAttribute(‘site’, null));

I found a solution for fixing this problem by adding additional parameters from target typolink which I add.

Greetings,
Manfred MIrsch

Reviews 2