commit cf0f308036072581f8180945159cbdadace6bf8e Author: kez kez@torproject.org Date: Thu Jun 24 13:55:47 2021 -0400
Correctly fix the footer links linking to the wrong page
The previous solution was fragile and would most likely break in the future. This is the correct solution.
See: tpo/web/donate-static!36 --- templates/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/footer.html b/templates/footer.html index a8b7d54e..1a45719b 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, absolute=True) }}"> {% else %} {% set local = bag('links', this.alt, id) %} {% if local %}
tor-commits@lists.torproject.org