Never allow the search page to be indexed
This commit is contained in:
parent
e2591be976
commit
9bc200fe9f
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class SearchPage(RoutablePageMixin, BaseContentPage):
|
||||||
context["search_query"] = request.GET.get("q", "")
|
context["search_query"] = request.GET.get("q", "")
|
||||||
context["search_url"] = self.reverse_subpage("results")
|
context["search_url"] = self.reverse_subpage("results")
|
||||||
context["MIN_SEARCH_LENGTH"] = MIN_SEARCH_LENGTH
|
context["MIN_SEARCH_LENGTH"] = MIN_SEARCH_LENGTH
|
||||||
|
context["SEO_INDEX"] = False
|
||||||
return context
|
return context
|
||||||
|
|
||||||
@route(r"^results/$")
|
@route(r"^results/$")
|
||||||
|
|
Loading…
Reference in a new issue