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

# Deprecation: #94223 - Extbase Request->getBaseUri()

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

## Description

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

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

## Impact

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

## Affected Installations

This getter is probably used rather seldom in extensions since both
frontend and backend take care of base URI's in many cases already.
The extension scanner will find remaining usages.

## Migration

When `getBaseUri()` is called in extensions, it is most likely
in a view related component. Since Fluid ViewHelpers currently still
don't receive an instance of the native PSR-7 request (which will change),
a typical substitution of this getter looks like this for now:

```php
// @todo Adapt this example as soon as ViewHelpers receive a ServerRequestInterface
$request = $GLOBALS['TYPO3_REQUEST'];
$normalizedParams = $request->getAttribute('normalizedParams');
$baseUri = $normalizedParams->getSiteUrl();
```
