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

Public Member Functions

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

Protected Member Functions

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

Private Attributes

TypoScriptFrontendController $controller
 

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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

◆ process()

◆ releaseTypoScriptFrontendControllerLocks()

TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::releaseTypoScriptFrontendControllerLocks ( )
protected

Release TSFE locks. They have been acquired in the earlier middleware PrepareTypoScriptFrontendRendering by calling tsfe->getFromCache(). TSFE locks are usually released by the RequestHandler 'final' middleware. However, when this middleware returns early without calling below middlewares, locks need to be released explicitly.

Todo:
‪: It would be better if lock acquiring and releasing would be encapsulated in ONE middleware.

Definition at line 109 of file ShortcutAndMountPointRedirect.php.

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

Member Data Documentation

◆ $controller

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