BeforeRedirectEvent

New in version 10.4: This event replaces the $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['beforeRedirect'] hook from the pibase plugin.

The notification event is triggered before a redirect is made.

New in version 11.5.26: 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