1
0
mirror of https://github.com/searx/searx synced 2024-12-11 08:25:27 +01:00

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.
This commit is contained in:
Hypolite Petovan 2017-10-18 23:44:11 -04:00 committed by GitHub
parent c8a66a090a
commit 904a8e7e3f

View File

@ -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='') -%}