Issue Feature Closed

#65717Extbase/Fluid: Add possibility to set an "error action" for forms and links in MvC

Jost Baron 03/13/15, 12:36 updated 06/16/23, 21:29

Description

Currently, if an action is called and the validation of a parameter fails,
the errorAction of that controller is called. This action redirects to
the action, controller and plugin that rendered the form which was
submitted.

This is often correct, but not always: For example, if a form is embedded
when rendering an unrelated view. If it is then submitted by AJAX and a
validation error occurs, the request should not be redirected to the
unrelated action which triggered the rendering of the form, but to a specific
controller/action combination.

This could be done by adding parameters errorAction, errorController,
@errorVendor@, errorExtension and errorArguments to action URIs
(f:uri.action, f:link.action, f:form).

These parameters have the same semantics that the corresponding
__referrer values have. If one of them is missing, the value from the
__referrer is used as a default.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.