Project

General

Profile

Actions

Bug #96813

closed

BeforeRedirectEvent is not useful at all because it accepts no arguments and the return value is ignored

Added by Stefan P over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2022-02-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Steps to reproduce:

  • Register your event class at the BeforeRedirectEvent
  • Let felogin trigger a redirect
  • the event gets fired
  • Problem: you have no way to do anything meaningful because the result value is not returned and no objects (e.g. the LoginConroller) are passed as argument.

The event gets the redirect URL and the login-type passed as parameter. But you neither can return a changed redirect URL nor change the calling controller (e.g. to inject another redirect URL).

The Event should provide at least one way to actually use the result from the event.

I flagged this as a bug, not as a feature, because the feature itself (the event) is already there, but it's just dead code.


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #92068: felogin (extbase) redirect from GET/POST is not working properlyClosed2020-08-21

Actions
Related to TYPO3 Core - Bug #90157: missing possibility to send return_url Parameter with 403 standard errorhandlerClosed2020-01-20

Actions
Related to TYPO3 Core - Bug #91844: felogin Redirect to referer is not working at all with Site config 403 errorHandlerClosed2020-07-23

Actions
Related to TYPO3 Core - Epic #96814: Totally broken felogin redirect mechanismClosed2022-02-10

Actions
Actions

Also available in: Atom PDF