Issue Bug Closed

#99839Can't append L in additionalParams when using recordLink to redirect

Phat Hoang 02/06/23, 08:18 updated 09/16/26, 20:30

Description

The function bootFrontendController in RedirectService does the following:
$controller->calculateLinkVars($queryParams);
$controller->getConfigArray();

But should probably be in the other order because calculateLinkVars needs the config.

A test here when redirecting to a record with &L=3 in additionalParams:
$controller->calculateLinkVars($queryParams);
$controller->getConfigArray();
var_dump($controller->linkVars); // string(0) “”

When the order is switched:
$controller->calculateLinkVars($queryParams);
$controller->getConfigArray();
var_dump($controller->linkVars); // string(4) “&L=3”

Reviews 0

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