[tor-commits] [newsletter/master] Use relative links in navbar

hiro at torproject.org hiro at torproject.org
Thu Jan 3 12:49:54 UTC 2019


commit d4d382eb26617cf5817650bfb7067d5e59653215
Author: hiro <hiro at torproject.org>
Date:   Thu Jan 3 13:46:19 2019 +0100

    Use relative links in navbar
---
 templates/navbar.html | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/templates/navbar.html b/templates/navbar.html
index 5cc4385..b37510a 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -15,7 +15,7 @@
 	{% set menubag = 'menu+' + this.alt %}
       	{% for id, item in bag(menubag).items() %}
 	<li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}>
-          <a class="nav-link" href="{{ item.path }}">{{ item.label }}
+          <a class="nav-link" href="{{ item.path|url }}">{{ item.label }}
             {% if this.is_child_of(item.path) %}
             <span class="sr-only">(current)</span>
             {% endif %}
@@ -28,5 +28,3 @@
   </div>
 
 </nav>
-	
- 





More information about the tor-commits mailing list