Browse Source

fix opening of result on new tab

Noémi Ványi 8 years ago
parent
commit
d82f64238f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/templates/oscar/result_templates/images.html

+ 2
- 2
searx/templates/oscar/result_templates/images.html View File

@@ -1,4 +1,4 @@
1
-<a href="#open-modal-{{ index }}-{{ pageno }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>
1
+<a href="#open-modal-{{ index }}-{{ pageno }}">
2 2
     <img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="img-thumbnail" id="img-result-thumb-{{ index }}" />
3 3
 </a>
4 4
 
@@ -23,7 +23,7 @@
23 23
         </div>
24 24
         <div class="row">
25 25
             <div class="col-md-12 col-sm-12 col-xs-12 modal-body">
26
-                <a href="{{ result.img_src }}"><div class="image-container"></div></a>
26
+                <a href="{{ result.img_src }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}><div class="image-container"></div></a>
27 27
             </div>
28 28
         </div>
29 29
         {% if result.content %}