From 13a066726683f58a7de6c1083e635b6d44ca888c Mon Sep 17 00:00:00 2001 From: Daphne Slootmans Date: Tue, 13 Oct 2026 11:01:55 +0200 Subject: [PATCH] fix: stop rendering the empty search modal on every page The Bootstrap theme included the search modal on every page, which added a second h1 next to the page heading. Nothing opens the modal and its body is empty, so the base template no longer includes it. The searchModal block stays available for templates that need the modal. The modal title is now an h2, so including it never adds a second h1. Co-Authored-By: Claude Opus 5.5 --- .../Themes/Bootstrap/src/Layout/Templates/Base.html.twig | 5 ++--- .../Bootstrap/src/Layout/Templates/SearchModal.html.twig | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Frontend/Themes/Bootstrap/src/Layout/Templates/Base.html.twig b/src/Frontend/Themes/Bootstrap/src/Layout/Templates/Base.html.twig index f7f3d58b4e..48a84d6374 100644 --- a/src/Frontend/Themes/Bootstrap/src/Layout/Templates/Base.html.twig +++ b/src/Frontend/Themes/Bootstrap/src/Layout/Templates/Base.html.twig @@ -113,9 +113,8 @@ {% include "Core/Layout/Templates/PrivacyConsentDialog.html.twig" %} {% endblock %} - {% block searchModal %} - {% include "Core/Layout/Templates/SearchModal.html.twig" %} - {% endblock %} + {# Override this block to include Core/Layout/Templates/SearchModal.html.twig where needed #} + {% block searchModal %}{% endblock %} {# Site wide HTML #} {% block htmlFooter %} diff --git a/src/Frontend/Themes/Bootstrap/src/Layout/Templates/SearchModal.html.twig b/src/Frontend/Themes/Bootstrap/src/Layout/Templates/SearchModal.html.twig index 286f0f4ec9..d426045b36 100644 --- a/src/Frontend/Themes/Bootstrap/src/Layout/Templates/SearchModal.html.twig +++ b/src/Frontend/Themes/Bootstrap/src/Layout/Templates/SearchModal.html.twig @@ -2,7 +2,7 @@