From 939aca2b9be3948d9bf9d87c10a0afe1c65d5fdb Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Wed, 6 Mar 2024 09:33:06 +0100 Subject: [PATCH] Fix flash messages --- templates/base.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/base.html.twig b/templates/base.html.twig index aa725c8a2..2d27b82b7 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -14,6 +14,7 @@ {% block flashes %} + {# The check is needed to prevent starting the session when looking for "flash messages": https://symfony.com/doc/current/session.html#avoid-starting-sessions-for-anonymous-users @@ -26,7 +27,7 @@ {% if flash_messages|length > 0 %}
- {% for type, messages in app.flashes %} + {% for type, messages in flash_messages %} {% for message in messages %}