Browse Source

Merge pull request #1066 from MrPetovan/issue/fix-favicon-paths

[fix] Missing favicon images in oscar and simple themes
Adam Tauber 7 years ago
parent
commit
b34124fd8a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      searx/templates/oscar/macros.html
  2. 1 1
      searx/templates/simple/macros.html

+ 1 - 1
searx/templates/oscar/macros.html

@@ -5,7 +5,7 @@
 
 
 <!-- Draw favicon -->
 <!-- Draw favicon -->
 {% macro draw_favicon(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 %}
 {%- endmacro %}
 
 
 {%- macro result_link(url, title, classes='') -%}
 {%- macro result_link(url, title, classes='') -%}

+ 1 - 1
searx/templates/simple/macros.html

@@ -9,7 +9,7 @@
 
 
 <!-- Draw favicon -->
 <!-- Draw favicon -->
 {% macro draw_favicon(favicon) -%}
 {% macro draw_favicon(favicon) -%}
-    <img width="14" height="14" class="favicon" src="{{ url_for('static', filename='/themes/simple/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
+    <img width="14" height="14" class="favicon" src="{{ url_for('static', filename='themes/simple/img/icons/' + favicon + '.png') }}" alt="{{ favicon }}" />
 {%- endmacro %}
 {%- endmacro %}
 
 
 {% macro result_open_link(url, classes='') -%}
 {% macro result_open_link(url, classes='') -%}