‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver:

Public Member Functions

 process (ServerRequestInterface $request, RequestHandlerInterface $handler)

Protected Member Functions

 isLanguageEnabled (SiteLanguage $language, ?BackendUserAuthentication $user=null)

Detailed Description

Resolves redirects of site if base is not / Can be replaced or extended by extensions if GeoIP-based or user-agent based language redirects need to happen.

Please note that the redirect usually does not contain the Query Parameters, as special query parameters like "id", "L" and "cHash" could then result in an error loop. One special case (adding a "/") is keeping the query parameters though.

Definition at line 41 of file SiteBaseRedirectResolver.php.

Member Function Documentation

◆ isLanguageEnabled()

TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver::isLanguageEnabled ( SiteLanguage  $language,
?BackendUserAuthentication  $user = null 

Checks if the language is allowed in Frontend, if not, check if there is valid BE user

Definition at line 96 of file SiteBaseRedirectResolver.php.

References TYPO3\CMS\Core\Site\Entity\SiteLanguage\enabled().

Referenced by TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver\process().

◆ process()

TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler