‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect:

Public Member Functions

 __construct (TypoScriptFrontendController $controller=null)
 
 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 getRedirectUri (ServerRequestInterface $request)
 
string prefixExternalPageUrl (string $redirectTo, string $sitePrefix)
 

Private Attributes

TypoScriptFrontendController $controller
 

Detailed Description

Checks mount points, shortcuts and redirects to the target. Alternatively, checks if the current page is an redirect to an external page

this middleware might get removed in TYPO3 v10.0.

Definition at line 33 of file ShortcutAndMountPointRedirect.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::__construct ( TypoScriptFrontendController  $controller = null)

Member Function Documentation

◆ getRedirectUri()

TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::getRedirectUri ( ServerRequestInterface  $request)
protected

◆ prefixExternalPageUrl()

string TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::prefixExternalPageUrl ( string  $redirectTo,
string  $sitePrefix 
)
protected

Returns the redirect URL for the input page row IF the doktype is set to 3.

Parameters
string$redirectTo‪The page row to return URL type for
string$sitePrefix‪if no protocol or relative path given, the site prefix is added
Returns
‪string The URL from based on the external page URL given with a prefix.

Definition at line 83 of file ShortcutAndMountPointRedirect.php.

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

◆ process()

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

Member Data Documentation

◆ $controller

TypoScriptFrontendController TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::$controller
private