Extract forward handling from errorAction
The default Extbase ActionController::errorAction uses the forward method to get back to the referring request.
If a custom and different redirect shall happen here, one has to clone the whole errorAction method.
Extracting the handling simplifies customization at this state.
[TASK] Decouple responsibilities in default errorAction()
The default Extbase ActionController::errorAction does a lot
of different things, which makes it hard to customize a controller
to a desired behavior without copying all or some of its code.
Extracting the different responsibilities to separate methods
simplifies such customizations.
Reviewed-by: Christian Kuhn <email@example.com>
Tested-by: Christian Kuhn <firstname.lastname@example.org>
Reviewed-by: Anja Leichsenring <email@example.com>
Tested-by: Anja Leichsenring <firstname.lastname@example.org>