---
title: "Deprecation: #94228 - Extbase request getRequestUri()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-94228"
source: "Changelog/11.3/Deprecation-94228-DeprecateExtbaseRequestGetRequestUri.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #94228 - Extbase request getRequestUri()

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

## Description

To further prepare Extbase towards PSR-7 compatible requests, the
Extbase `\TYPO3\CMS\Extbase\Mvc\Request` has to be streamlined.

Method `getRequestUri()` has been deprecated and shouldn't be
used any longer.

## Impact

Using the method will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations

Extbase based extensions may use this method. The extension scanner
will find usages as weak match.

## Migration

When `getRequestUri()` is called in extensions, the same information
can be retrieved from the native PSR-7 request. At the moment, this is usually
only available using `$GLOBALS['TYPO3_REQUEST']`, but this will change
when the Extbase request is compatible with PSR-7 ServerRequestInterface.
A substitution looks like this for now:

```php
// @todo Adapt this example as soon as Extbase Request implements ServerRequestInterface
$request = $GLOBALS['TYPO3_REQUEST'];
$normalizedParams = $request->getAttribute('normalizedParams');
$requestUrl = $normalizedParams->getRequestUrl();
```
