From 904a8e7e3f62b32c117ecddfeae39ef3f5e47d1f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 18 Oct 2017 23:44:11 -0400 Subject: [PATCH 1/2] 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. --- searx/templates/oscar/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 6235bcc6..0ff95752 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -5,7 +5,7 @@ {% macro draw_favicon(favicon) -%} - {{ favicon }} + {{ favicon }} {%- endmacro %} {%- macro result_link(url, title, classes='') -%} From d506d87f60662ece723bae04e930b6b1d8d1f2d0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 18 Oct 2017 23:45:30 -0400 Subject: [PATCH 2/2] Remove / in url_for parameter for simple theme Same change as with the oscar theme. --- searx/templates/simple/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 88350368..f0b36276 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -9,7 +9,7 @@ {% macro draw_favicon(favicon) -%} - {{ favicon }} + {{ favicon }} {%- endmacro %} {% macro result_open_link(url, classes='') -%}