[TYPO3-mvc] Redirect instead of forward on action error

Viktor Livakivskyi invisible.kinder at gmail.com
Mon Oct 5 13:45:53 CEST 2015


Hi, List.

I have a 2-step form, which is required to be on 2 different pages, because customer wants different  content be around the form, depending on a step.

All is okay, except case, when validation error happens. In such situation user is already landed to 2nd page, but form from a 1st page is displayed.

This happens because errorAction() calls to forwardToReferringRequest(). So, I tried to do same, but call redirect() instead of forward(). This worked, except the fact, that validation error were not passed, since it is basically new request without referrer.

The question: is it possible to redirect user to a previous page and keep validation errors in case of validation failure?


More information about the TYPO3-project-typo3v4mvc mailing list