diff --git a/templates/partials/header.html b/templates/partials/header.html
index c349c7ca1..a621ab85f 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -41,8 +41,8 @@
{{link_label}}
{% elif base is containing("www_threefold_io") %}
- {% set path = 'www_threefold_io' ~ link_path[1] %}
-
+ {% set path = base ~ link_path[1] %}
+
{{link_label}}
{% else %}
@@ -175,7 +175,7 @@
{{link_label}}
{% elif base is containing("www_threefold_io") %}
- {% set path = 'www_threefold_io' ~ link_path[1] %}
+ {% set path = base ~ link_path[1] %}
{{link_label}}