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 \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 ( )
returntype

string

getRedirectUrl ( )
returntype

string

setRedirectUrl ( string $redirectUrl)
param string $redirectUrl

the redirectUrl

getRequest ( )
returntype

Psr\Http\Message\ServerRequestInterface