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
1 changed files with 1 additions and 0 deletions

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