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 %}