#83392Flashmessage won't work correctly with $this->redirect in a controllerAction
Description
I got the following problem.
@
if ( … ) {
…
$this->addFlashMessage(
LocalizationUtility::translate(
‘flash.ad.checkCompany.missingData.message’,
‘project’
) . “\n” . $error,
LocalizationUtility::translate(
‘flash.ad.checkCompany.missingData.title’,
‘project’
),
AbstractMessage::ERROR,
false
);
// the following line will not trigger a flashmessage
// $this->redirect(null, null, null, [‘err’ => ‘ad’], $this->settings[‘pids’][‘profileCompany’]);
//
$this->redirect(‘edit’, ‘Company’, null, [‘err’ => ‘ad’], $this->settings[‘pids’][‘profileCompany’]);
}
@Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.