diff --git a/cms/templates/admin/base_site.html b/cms/templates/admin/base_site.html
index d050919de3..953b42d2bf 100644
--- a/cms/templates/admin/base_site.html
+++ b/cms/templates/admin/base_site.html
@@ -7,13 +7,13 @@
{% block nav-global %}{% endblock %}
{% block userlinks %}
{% if site_url %}
- {% trans 'View site' %} /
+ {% trans 'View site' as tmsg%} {{tmsg|force_escape}} /
{% endif %}
{% if user.is_active and user.is_staff %}
{% url 'django-admindocs-docroot' as docsroot %}
{% if docsroot %}
- {% trans 'Documentation' %} /
+ {% trans 'Documentation' as tmsg %} {{tmsg|force_escape}} /
{% endif %}
{% endif %}
- {% trans 'Log out' %}
+ {% trans 'Log out' as tmsg %} {{tmsg|force_escape}}
{% endblock %}