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.
commit904a8e7e3f62b32c117ecddfeae39ef3f5e47d1f
authorHypolite Petovan <mrpetovan@gmail.com>
dateWed 18 Oct 2017, 23:44 (9 years ago)
parentc8a66a0
searx/templates/oscar/macros.html+1−1
@@ -5,7 +5,7 @@
55
66<!-- Draw favicon -->
77{% macro draw_favicon(favicon) -%}
8− <img width="32" height="32" class="favicon" src="{{ url_for('static', filename='/themes/oscar/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
8+ <img width="32" height="32" class="favicon" src="{{ url_for('static', filename='themes/oscar/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
99{%- endmacro %}
1010
1111{%- macro result_link(url, title, classes='') -%}