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

Public Member Functions

 process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

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

Detailed Description

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

this middleware might get removed in TYPO3 v10.x.

Definition at line 37 of file ShortcutAndMountPointRedirect.php.

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 100 of file ShortcutAndMountPointRedirect.php.

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

◆ process()