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.

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()
Return type

string

getRedirectUrl()
Return type

string

setRedirectUrl(string $redirectUrl)
Parameters
  • $redirectUrl (string) -- the redirectUrl

getRequest()
Return type

Psr\Http\Message\ServerRequestInterface