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¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
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