From 11b6632d5d8ba41d8a9ded94789365ff7467093e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Lebrun?= Date: Mon, 3 Nov 2025 08:58:14 +0100 Subject: [PATCH] templates/topbar: add required attribute to search input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we press enter without any search value, we get directed to /$PROJECT/$VERSION/A/ident/ which is a "400 Bad Request". As the search input is selected by default, this is any enter press where the focus hasn't changed. `required` documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/required Signed-off-by: Théo Lebrun --- templates/topbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/topbar.html b/templates/topbar.html index 171b107..4092ce6 100644 --- a/templates/topbar.html +++ b/templates/topbar.html @@ -19,7 +19,7 @@
+ value="{{ searched_ident|default('')|e }}" autofocus required/>