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

[tor-commits] [donate-static/master] Fix footer links 404'ing from relative path



commit 5521d021d5530894d6a87af01e460ac42994aaf7
Author: kez <kez@xxxxxxxxxxxxxx>
Date:   Thu Jun 17 14:22:11 2021 -0400

    Fix footer links 404'ing from  relative path
---
 templates/footer.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/footer.html b/templates/footer.html
index 97d1488e..a8b7d54e 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -42,7 +42,7 @@
           <li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}>
           {% set link = site.get(item.path) %}
           {% if link %}
-            <a class="nav-link text-light" href="{{ item.path|url(alt=this.alt) }}">
+            <a class="nav-link text-light" href="/{{ item.path|url(alt=this.alt) }}">
           {% else %}
             {% set local = bag('links', this.alt, id) %}
             {% if local %}

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