Deprecation: #100584 - GeneralUtility::linkThisScript()
has been marked as deprecated and should not be used any longer.
The method uses the super global
$_GET which should be avoided. Instead,
data should be retrieved via the PSR-7
Controllers should typically create URLs using the
Using the method triggers a deprecation level log entry in TYPO3 v12, the
method will be removed with TYPO3 v13.
The method was typically used in backend context: Extensions with own
backend modules may be affected. The extension scanner finds usages
with a strong match.
linkThisScript() was typically used when a link to some view is
created that should return back to the current view later.
Controllers usually "know" the route a view should return to and the relevant
A transition could look like this:
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
$queryParams = $request->getQueryParams();
$url = $uriBuilder->buildUriFromRoute(
'table' => $queryParams['table'] ?? '',
'uid' => (int)($queryParams['uid'] ?? 0),