Never allow the search page to be indexed

This commit is contained in:
Jake Howard 2023-10-06 18:33:51 +01:00
parent e2591be976
commit 9bc200fe9f
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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/$")