[tor-commits] [lego/master] Fixed donate header URL path

hiro at torproject.org hiro at torproject.org
Fri Oct 16 12:42:21 UTC 2020


commit 91bf7ee648b54f68ed93b32e49d3ab418804b0a6
Author: Peter Haight <peterh at giantrabbit.com>
Date:   Thu Oct 15 12:59:58 2020 -0700

    Fixed donate header URL path
    
    We need to use the asseturl filter or the image won't show up if the
    site is served from a subdirectory.
---
 templates/header.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/header.html b/templates/header.html
index 4207aab..87e8ee2 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -14,7 +14,7 @@
         <div class="col-12 content-center pt-5 donate-has-image">
           <div class="row pb-5">
             <h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2>
-            <img src="{{ this.header_image }}" class="donate-header-image" />
+            <img src="{{ this.header_image | asseturl }}" class="donate-header-image" />
           </div>
         </div>
         {% else %}



More information about the tor-commits mailing list