diff --git a/templates/partials/header.html b/templates/partials/header.html
index 066675ad4..91bfef91c 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -40,12 +40,10 @@
{{link_label}}
{% endif %}
- {% elif current_url %}
- {% if current == current_url%}
+ {% elif current_url and current == current_url %}
{{link_label}}
- {% endif %}
{% else %}
{{link_label}}