Issue Feature Rejected

#106244Adding queue identifier to addFlashMessage

Philipp Parzer 02/25/25, 07:27 updated 03/11/25, 20:30

Description

https://github.com/TYPO3/typo3/blob/main/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php#L648

Currently, if you add a flashmessage via the addFlashMessage function in ActionController, you don’t have the possibility to add the queue identifier.
So the identifier is null and therefore the identifier is automatically set.
If you add a flashmessage in an action of plugin A and want to redirect to an action of plugin B on a different page, the flashmessage doesn’t show up because of the different queue.

Reviews 0

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

History 2

  1. Georg Ringer commented <span data-processor="relativetime" data-value="2025-02-25T13:03:56+00:00" > 02/25/25, 13:03 </span>

    you could use

    $queue = $this->getFlashMessageQueue('identifier');
    $queue->enqueue($myMessage);

    but yeah, having the $identifier as 5th argument would be an option

  2. Georg Ringer commented and changed status New Rejected <span data-processor="relativetime" data-value="2025-03-11T20:30:35+00:00" > 03/11/25, 20:30 </span>

    closing issue. adding another parameter is not nice, especially if there is a easier way.

    however opened an issue for docs team at https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/issues/5426