---
title: "Deprecation: #100584 - GeneralUtility::linkThisScript()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-100584-1681452843"
source: "Changelog/12.4/Deprecation-100584-GeneralUtilitylinkThisScript.rst"
typo3-version: "12.4"
typo3-major: 12
type: "deprecation"
issue: 100584
forge: "https://forge.typo3.org/issues/100584"
tags: ["Backend", "PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-10-02T13:37:19+00:00"
---

# Deprecation: #100584 - GeneralUtility::linkThisScript() {#deprecation-100584-1681452843}

See [forge#100584](https://forge.typo3.org/issues/100584)

## Description {#description}

The method `\TYPO3\CMS\Core\Utility\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 `ServerRequestInterface`.

Controllers should typically create URLs using the `\TYPO3\CMS\Backend\Routing\UriBuilder`.

## Impact {#impact}

Using the method triggers a deprecation level log entry in TYPO3 v12, the
method will be removed with TYPO3 v13.

## Affected installations {#affected-installations}

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.

## Migration {#migration}

`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
GET parameters.

A transition could look like this:

```php
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
$queryParams = $request->getQueryParams();
$url = $uriBuilder->buildUriFromRoute(
    'my_route',
    [
        'table' => $queryParams['table'] ?? '',
        'uid' => (int)($queryParams['uid'] ?? 0),
    ]
);
```
