diff --git a/files/templates/default.html b/files/templates/default.html
index 3d1386025c..2a33fc650e 100644
--- a/files/templates/default.html
+++ b/files/templates/default.html
@@ -9,6 +9,7 @@
{% block title %}
{% endblock %}
{{html_head.html_head(true, true, true, csp, SITE_NAME, true)}}
+ {% block head_final %}{% endblock %}
diff --git a/files/templates/userpage.html b/files/templates/userpage.html
index 693ae0afe0..6ac6ae6fd7 100644
--- a/files/templates/userpage.html
+++ b/files/templates/userpage.html
@@ -3,12 +3,10 @@
{% block pagetype %}userpage{% endblock %}
-{% block title %}
-
-{% if u and u.profilecss and not request.values.get('nocss') %}
-
-{% endif %}
-
+{% block head_final %}
+ {% if u and u.profilecss and not request.values.get('nocss') %}
+
+ {% endif %}
{% endblock %}
{% import 'userpage/admintools.html' as userpage_admintools with context %}