From 4187f252f67661dbab71b8e00ed2ae3f90bbb040 Mon Sep 17 00:00:00 2001 From: Dave O'Connor Date: Tue, 7 Jan 2025 11:19:04 -0800 Subject: [PATCH] Fix plausible logging on doc_libs_placeholder based pages (#1579) --- core/views.py | 4 +++- templates/base.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/views.py b/core/views.py index 446454f0..e1d891bd 100644 --- a/core/views.py +++ b/core/views.py @@ -479,7 +479,9 @@ def process_content(self, content): else: # potentially pass version if needed for HTML modification base_html = render_to_string( - "docs_libs_placeholder.html", context, request=self.request + "docs_libs_placeholder.html", + {**context, **{"disable_plausible": True}}, + request=self.request, ) context["content"] = modernize_legacy_page( content, diff --git a/templates/base.html b/templates/base.html index d65d5b08..696aac10 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,9 +5,11 @@ - + {% endif %} {% block title %}Boost{% endblock %}