[tor-commits] [tpo/staging] Fix url

hiro at torproject.org hiro at torproject.org
Tue Dec 11 13:37:07 UTC 2018


commit 5ddcd4d7c3e54351e68d30a4752897327fedfbec
Author: hiro <hiro at torproject.org>
Date:   Tue Dec 11 14:37:01 2018 +0100

    Fix url
---
 templates/header.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/header.html b/templates/header.html
index 6f29bc3..024e18d 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -22,7 +22,8 @@
         {% for id, item in bag(menubag).items() %}
         <li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}>
         {% if this.is_child_of(this.parent) %}
-          <a class="nav-link" href="{{ this.parent.path }}/{{ item.path }}">{{ item.label }}
+          {% set link = this.parent.path + "/" + item.path}
+          <a class="nav-link" href="{{ link|url }}">{{ item.label }}
         {% else %}
           <a class="nav-link" href="{{ item.path|url}}">{{ item.label }}
         {% endif %}



More information about the tor-commits mailing list