Feature #77025
open
f:form: Disable referrer information
Added by Christian Weiske over 8 years ago.
Updated over 4 years ago.
Description
On validation errors, extbase forwards to the referring action - potentially breaking actions because the original plugin settings are not available (see #70384).
Having the option to disable the inclusion of the referrer information in <f:form>
would prevent this type of bug.
Please add an argument to <f:form>
to disable the inclusion of referrer information.
- Status changed from New to Needs Feedback
Hi Christian,
you can simply overwrite the errorAction() in your controller and do whatever suits your controller. IMHO there won't be an option to disable forwarding.
Overrriding errorAction()
that influences all actions of a controller is a bit much if I just want a single form to not have a referrer.
But it's your choice as always.
- Status changed from Needs Feedback to New
I think, Christian is right.
If you want to build a form for a frontend-editing with IRRE-Elements, the TYPO3-assmption to the evoiroment will destroy your try.
The behavior of the current f:form-viewhelper don't fit the documentation. You find no hint in the documentation, that the f:form:viewhelper is restricted to a special plugin-context. (https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Form.html - last visit: 2017-04-23)
The current behavior of the form-viewhelper is a bug without the wished feature.
The concrete errorAction to use can be configured via a property of the controller.
That way one could change it via initializeAction or concrete initializeExampleAction.
Still not sure whether that helps, but at least it is not true that you only have one single error action for all actions.
Also I don't think one should follow those paths and scenarios. As already mentioned in the referenced issue #70384 there are other more clean ways.
Also maybe use ext:form for such scenarios.
Also available in: Atom
PDF