summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorHypolite Petovan <mrpetovan@gmail.com>2017-10-18 23:44:11 -0400
committerGitHub <noreply@github.com>2017-10-18 23:44:11 -0400
commit904a8e7e3f62b32c117ecddfeae39ef3f5e47d1f (patch)
treeccf3c44713ab810f30f7102dd4aaafc97ec6c072 /searx/templates
parentc8a66a090a7bde3c8003b9dc6cb1d13359b5d667 (diff)
downloadsearxng-904a8e7e3f62b32c117ecddfeae39ef3f5e47d1f.tar.gz
searxng-904a8e7e3f62b32c117ecddfeae39ef3f5e47d1f.zip
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 (limited to 'searx/templates')
-rw-r--r--searx/templates/oscar/macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html
index 6235bcc62..0ff957521 100644
--- 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='') -%}