ShortcutAndMountPointRedirect implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait
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.
Table of Contents
Interfaces
- MiddlewareInterface
- LoggerAwareInterface
Methods
- process() : ResponseInterface
- getRedirectUri() : string|null
- prefixExternalPageUrl() : string
- Returns the redirect URL for the input page row IF the doktype is set to 3.
Methods
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacegetRedirectUri()
protected
getRedirectUri(ServerRequestInterface $request) : string|null
Parameters
- $request : ServerRequestInterface
Return values
string|nullprefixExternalPageUrl()
Returns the redirect URL for the input page row IF the doktype is set to 3.
protected
prefixExternalPageUrl(string $redirectTo, string $sitePrefix) : string
Parameters
- $redirectTo : string
-
The page row to return URL type for
- $sitePrefix : string
-
if no protocol or relative path given, the site prefix is added
Return values
string —The URL from based on the external page URL given with a prefix.