[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 5ddcd4d7c3e54351e68d30a4752897327fedfbec
Author: hiro <hiro@xxxxxxxxxxxxxx>
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 %}

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits