---
title: "Deprecation: #88499 - BackendUtility::getViewDomain"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-88499"
source: "Changelog/10.0/Deprecation-88499-BackendUtilitygetViewDomain.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #88499 - BackendUtility::getViewDomain

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

## Description

The static method `TYPO3\CMS\Backend\Utility\BackendUtility::getViewDomain()` has been marked
as deprecated, as it has been superseded by directly using the PageRouter of Site Handling.

Site Handling allows to generate proper frontend preview URLs the same way as TYPO3 Core does in
all other places, by calling the PageRouter of a Site object directly, so the workarounds are not
necessary anymore, making this method obsolete.

## Impact

Calling `BackendUtility::getViewDomain()` will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations

Any TYPO3 installations with custom extensions that call this method.

## Migration

Substitute the method by directly detecting a site based on a given Page ID in the TYPO3 Backend.
Call the `getRouter()` method on this Site object to create proper links to pages in TYPO3 Frontend.

Example with additional GET parameters:

```php
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId($pageId);
$url = $site->getRouter()->generateUri($pageId, ['type' => 13]);
```
