Deprecation: #88499 - BackendUtility::getViewDomain ¶
See Issue #88499
The static method
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.
will trigger a PHP
Affected Installations ¶
Any TYPO3 installations with custom extensions that call this method.
Substitute the method by directly detecting a site based on a given Page ID in the TYPO3 Backend.
method on this Site object to create proper links to pages in TYPO3 Frontend.
Example with additional GET parameters:
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId($pageId); $url = $site->getRouter()->generateUri($pageId, ['type' => 13]);