From db2c03989151113e4a5ca6778423bf215ed427bd Mon Sep 17 00:00:00 2001 From: Nick Jackson Date: Mon, 6 Jan 2025 14:41:34 +0000 Subject: [PATCH] Add missing breadcrumbs to courts list and advanced search page --- config/views/advanced_search.py | 4 ++++ config/views/courts.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/config/views/advanced_search.py b/config/views/advanced_search.py index c7d4655a6..b3af01205 100644 --- a/config/views/advanced_search.py +++ b/config/views/advanced_search.py @@ -20,4 +20,8 @@ def get_context_data(self, **kwargs): context["tribunals"] = courts.get_grouped_selectable_tribunals() context["feedback_survey_type"] = "advanced_search" context["form"] = AdvancedSearchForm() + context["breadcrumbs"] = [ + {"text": self.page_title}, + ] + return context diff --git a/config/views/courts.py b/config/views/courts.py index 5da1f6762..94e0f2b98 100644 --- a/config/views/courts.py +++ b/config/views/courts.py @@ -21,6 +21,10 @@ def get_context_data(self, **kwargs): context["courts"] = courts.get_grouped_selectable_courts() context["tribunals"] = courts.get_grouped_selectable_tribunals() context["feedback_survey_type"] = "courts_and_tribunals" + context["breadcrumbs"] = [ + {"text": self.page_title}, + ] + return context