‪TYPO3CMS  ‪main
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)
 
 getRedirectUriForShortcut (ServerRequestInterface $request)
 
 getRedirectUriForMountPoint (ServerRequestInterface $request)
 
string prefixExternalPageUrl (string $redirectTo, string $sitePrefix)
 
 getUriToCurrentPageForRedirect (ServerRequestInterface $request)
 

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

Member Function Documentation

◆ getRedirectUri()

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

◆ getRedirectUriForMountPoint()

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

Returns URI of target page, if the current page is an overlaid mountpoint.

If the current page is of type mountpoint and should be overlaid with the contents of the mountpoint page and is accessed directly, the user will be redirected to the mountpoint context.

Definition at line 149 of file ShortcutAndMountPointRedirect.php.

References TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_MOUNTPOINT, and TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect\getUriToCurrentPageForRedirect().

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

◆ getRedirectUriForShortcut()

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

Returns URI of target page, if the current page is a Shortcut.

If the current page is of type shortcut and accessed directly via its URL, the user will be redirected to shortcut target.

Definition at line 112 of file ShortcutAndMountPointRedirect.php.

References TYPO3\CMS\Frontend\Page\PageAccessFailureReasons\ACCESS_DENIED_HOST_PAGE_MISMATCH, TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_SHORTCUT, and TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect\getUriToCurrentPageForRedirect().

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

◆ getUriToCurrentPageForRedirect()

TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::getUriToCurrentPageForRedirect ( 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 168 of file ShortcutAndMountPointRedirect.php.

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

◆ process()