[tor-commits] [lego/master] Fix templates

hiro at torproject.org hiro at torproject.org
Fri Aug 23 12:07:36 UTC 2019


commit ddd5194024c719bc3088cb78fa2af7f4a87149b1
Author: hiro <hiro at torproject.org>
Date:   Fri Aug 23 14:07:33 2019 +0200

    Fix templates
---
 databags/menu+en.ini  | 2 +-
 templates/navbar.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/databags/menu+en.ini b/databags/menu+en.ini
index e4826c0..e7a52b2 100644
--- a/databags/menu+en.ini
+++ b/databags/menu+en.ini
@@ -1,5 +1,5 @@
 [about]
-path = https://www.torproject.org/about/history
+path = https://www.torproject.org/about/history/
 label = About
 
 [documentation]
diff --git a/templates/navbar.html b/templates/navbar.html
index db78178..782474e 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -31,7 +31,7 @@
             {% elif item.label == "Documentation" or item.label == "Blog" or item.label == "Jobs" %}
               <a class="nav-link" href="{{ item.path }}">
             {% else %}
-              <a class="nav-link" href="{{ item.path }}{{ this.alt }}">
+              <a class="nav-link" href="{{ item.path|url(alt=this.alt) }}">
             {% endif %}
             {{ _(item.label) }}
               {% if this.path == item.path %}



More information about the tor-commits mailing list