Closed mawo closed 4 months ago
I confirm this bug. It happens with spam. I do not use a routeEnhancer.
TYPO3 v11.5.27 Powermail v10.7.2 PHP 8.1
I ithink the code needs to be changed in
if (!isset($arguments['mail'])) {
The redirect works if you replace return new ForwardResponse('form');
with $this->forward('form');
edit: which is far from perfect as the forward method is marked as deprecated.
I confirm, this is solved at least in Powermail 10.8.1
TYPO3 v11.5 Powermail v10.7.2
When accessing the "success" URL without mail data I expect a redirect (or forward) to the mail form.
Instead an error message is shown:
The URL configuration looks like this (for the case it is a configuration issue at our side):
When accessing the URL
/path/to/form/gesendet
the error mentioned above is shown.The source code in
FormController
looks like the redirect should be triggered. But it is not. see initializeCreateAction():The function
forwardIfMailParamEmpty()
returns aForwardResponse
but the response is never used.