BeforeRedirectEvent

The PSR-14 event \TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent is triggered before a redirect is made.

New in version 11.5.26/12.3

The methods setRedirectUrl() and getRequest() are available.

Example

API

class BeforeRedirectEvent
Fully qualified name
\TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent

Notification before a redirect is made, which also allows to modify the actual redirect URL. Setting the redirect to an empty string will avoid triggering a redirect.

getLoginType ( )
Returns
string
getRedirectUrl ( )
Returns
string
setRedirectUrl ( string $redirectUrl)
param $redirectUrl

the redirectUrl

getRequest ( )
Returns
\Psr\Http\Message\ServerRequestInterface