diff --git a/searx/templates/courgette/result_templates/code.html b/searx/templates/courgette/result_templates/code.html
index 953617e84..d6dbd5ed7 100644
--- a/searx/templates/courgette/result_templates/code.html
+++ b/searx/templates/courgette/result_templates/code.html
@@ -1,11 +1,11 @@
-
-
- {% if result.publishedDate %}
{{ result.publishedDate }}{% endif %}
-
{% if result.img_src %}{% endif %}{% if result.content %}{{ result.content|safe }}
{% endif %}
- {% if result.repository %}
{{ result.repository }}
{% endif %}
-
- {{ result.codelines|code_highlighter(result.code_language)|safe }}
-
-
-
{{ result.pretty_url }}
-
+
+
+ {% if result.publishedDate %}
{{ result.publishedDate }}{% endif %}
+
{% if result.img_src %}{% endif %}{% if result.content %}{{ result.content|safe }}
{% endif %}
+ {% if result.repository %}
{{ result.repository }}
{% endif %}
+
+ {{ result.codelines|code_highlighter(result.code_language)|safe }}
+
+
+
{{ result.pretty_url }}
+
diff --git a/searx/templates/legacy/result_templates/code.html b/searx/templates/legacy/result_templates/code.html
index 9e3ed20af..fee6c8221 100644
--- a/searx/templates/legacy/result_templates/code.html
+++ b/searx/templates/legacy/result_templates/code.html
@@ -1,11 +1,11 @@
-
-
-
{{ result.pretty_url }} {{ _('cached') }}
- {% if result.publishedDate %}
{{ result.publishedDate }}
{% endif %}
-
{% if result.img_src %}{% endif %}{% if result.content %}{{ result.content|safe }}
{% endif %}
- {% if result.repository %}
{{ result.repository }}
{% endif %}
-
-
- {{ result.codelines|code_highlighter(result.code_language)|safe }}
-
-
+
+
+
{{ result.pretty_url }} {{ _('cached') }}
+ {% if result.publishedDate %}
{{ result.publishedDate }}
{% endif %}
+
{% if result.img_src %}{% endif %}{% if result.content %}{{ result.content|safe }}
{% endif %}
+ {% if result.repository %}
{{ result.repository }}
{% endif %}
+
+
+ {{ result.codelines|code_highlighter(result.code_language)|safe }}
+
+
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html
index e71091e70..c35a19158 100644
--- a/searx/templates/oscar/macros.html
+++ b/searx/templates/oscar/macros.html
@@ -1,88 +1,87 @@
-
-{% macro icon(action) -%}
-
-{%- endmacro %}
-
-
-
-{% macro draw_favicon(favicon) -%}
-
-{%- endmacro %}
-
-{%- macro result_link(url, title, classes='') -%}
-{{ title }}
-{%- endmacro -%}
-
-
-{% macro result_header(result, favicons) -%}
-
-{%- endmacro %}
-
-
-{% macro result_sub_header(result) -%}
- {% if result.publishedDate %}{% endif %}
- {% if result.magnetlink %} • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink") }}{% endif %}
- {% if result.torrentfile %} • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile") }}{% endif %}
-{%- endmacro %}
-
-
-{% macro result_footer(result) -%}
-
-
- {% for engine in result.engines %}
- {{ engine }}
- {% endfor %}
- {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}
- {% if proxify %}
- {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}
- {% endif %}
-
-{{ result.pretty_url }}
-{%- endmacro %}
-
-
-{% macro result_footer_rtl(result) -%}
-
- {% for engine in result.engines %}
- {{ engine }}
- {% endfor %}
- {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}
- {% if proxify %}
- {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}
- {% endif %}
- {{ result.pretty_url }}
-{%- endmacro %}
-
-{% macro preferences_item_header(info, label, rtl) -%}
- {% if rtl %}
-
- {% endif %}
-{%- endmacro %}
-
-{% macro checkbox_toggle(id, blocked) -%}
-
-
-
-
-{%- endmacro %}
+
+{% macro icon(action) -%}
+
+{%- endmacro %}
+
+
+{% macro draw_favicon(favicon) -%}
+
+{%- endmacro %}
+
+{%- macro result_link(url, title, classes='') -%}
+{{ title }}
+{%- endmacro -%}
+
+
+{% macro result_header(result, favicons) -%}
+
+{%- endmacro %}
+
+
+{% macro result_sub_header(result) -%}
+ {% if result.publishedDate %}{% endif %}
+ {% if result.magnetlink %} • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink") }}{% endif %}
+ {% if result.torrentfile %} • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile") }}{% endif %}
+{%- endmacro %}
+
+
+{% macro result_footer(result) -%}
+
+
+ {% for engine in result.engines %}
+ {{ engine }}
+ {% endfor %}
+ {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}
+ {% if proxify %}
+ {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}
+ {% endif %}
+
+{{ result.pretty_url }}
+{%- endmacro %}
+
+
+{% macro result_footer_rtl(result) -%}
+
+ {% for engine in result.engines %}
+ {{ engine }}
+ {% endfor %}
+ {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }}
+ {% if proxify %}
+ {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }}
+ {% endif %}
+ {{ result.pretty_url }}
+{%- endmacro %}
+
+{% macro preferences_item_header(info, label, rtl) -%}
+ {% if rtl %}
+
+ {% endif %}
+{%- endmacro %}
+
+{% macro checkbox_toggle(id, blocked) -%}
+
+
+
+
+{%- endmacro %}
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index 76c53a635..883503683 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -8,9 +8,8 @@
{%- endmacro %}
-
{% macro draw_favicon(favicon) -%}
-
+
{%- endmacro %}
{% macro result_open_link(url, classes='') -%}
diff --git a/searx/webapp.py b/searx/webapp.py
index 3afdbefd8..0751fb983 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -792,7 +792,8 @@ def opensearch():
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path,
- 'static/themes',
+ static_path,
+ 'themes',
get_current_theme_name(),
'img'),
'favicon.png',