logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 904a8e7e3f62b32c117ecddfeae39ef3f5e47d1f
parent c8a66a090a7bde3c8003b9dc6cb1d13359b5d667
Author: Hypolite Petovan <mrpetovan@gmail.com>
Date:   Wed, 18 Oct 2017 23:44:11 -0400

Remove extra / in url_for parameter for oscar theme

The `filename` parameter of the `url_for` function doesn't need a leading `/`, or else the resulting URL features a double-slash `//` that throws off searx 0.12.0 with Apache 2.4.25 on Debian, resulting in missing favicons.

Diffstat:

Msearx/templates/oscar/macros.html2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html @@ -5,7 +5,7 @@ <!-- Draw favicon --> {% macro draw_favicon(favicon) -%} - <img width="32" height="32" class="favicon" src="{{ url_for('static', filename='/themes/oscar/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" /> + <img width="32" height="32" class="favicon" src="{{ url_for('static', filename='themes/oscar/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" /> {%- endmacro %} {%- macro result_link(url, title, classes='') -%}