diff --git a/apps/core/templates/base.html b/apps/core/templates/base.html
index 2618e004..7eb3880b 100644
--- a/apps/core/templates/base.html
+++ b/apps/core/templates/base.html
@@ -22,7 +22,7 @@
We don’t want older versions of the documentation to show up in search results.
So we block all non-latest pages indexing with the robots=noindex meta tag.
{% endcomment %}
- {% if "latest" not in self.locale.language_code %}
+ {% if SEO_NOINDEX or "latest" not in self.locale.language_code %}
{% endif %}
diff --git a/apps/search/views.py b/apps/search/views.py
index 9c79399c..08e0eb31 100644
--- a/apps/search/views.py
+++ b/apps/search/views.py
@@ -39,6 +39,7 @@ def search(request):
{
"search_query": search_query,
"search_results": search_results,
+ "SEO_NOINDEX": True,
},
)