From 9bc200fe9fc3cf190a144a4834d75dc9a2a204de Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 6 Oct 2023 18:33:51 +0100 Subject: [PATCH] Never allow the search page to be indexed --- website/search/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/website/search/models.py b/website/search/models.py index a683974..6d33851 100644 --- a/website/search/models.py +++ b/website/search/models.py @@ -37,6 +37,7 @@ class SearchPage(RoutablePageMixin, BaseContentPage): context["search_query"] = request.GET.get("q", "") context["search_url"] = self.reverse_subpage("results") context["MIN_SEARCH_LENGTH"] = MIN_SEARCH_LENGTH + context["SEO_INDEX"] = False return context @route(r"^results/$")