From b5e3c23173fe000d16c67a6f6c6025d0ad4ffbf6 Mon Sep 17 00:00:00 2001 From: Jean-Michel Crepel Date: Wed, 29 Oct 2025 14:40:20 +0100 Subject: [PATCH] upgrade the condition of active to take full path insteand of just endpoint --- geordash/templates/dashboard/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geordash/templates/dashboard/header.tmpl b/geordash/templates/dashboard/header.tmpl index 4c21d42..3095bf7 100644 --- a/geordash/templates/dashboard/header.tmpl +++ b/geordash/templates/dashboard/header.tmpl @@ -37,7 +37,7 @@ {% endblock scripts %} {% macro render_dropdown_item(endpoint, text, _badge='', _badge_classes='badge text-bg-light') %} - {% set active = True if request.endpoint and request.endpoint == endpoint else False %} + {% set active = True if request.full_path and request.full_path == url_for(endpoint, **kwargs)+"?" else False %}