logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: d82f64238f63debe143d1f9617aa5149197ba6ad
parent 1157cefb1e231673592799e43d6448a494b703d0
Author: Noémi Ványi <sitbackandwait@gmail.com>
Date:   Tue, 27 Dec 2016 20:21:45 +0100

fix opening of result on new tab

Diffstat:

Msearx/templates/oscar/result_templates/images.html4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html @@ -1,4 +1,4 @@ -<a href="#open-modal-{{ index }}-{{ pageno }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}> +<a href="#open-modal-{{ index }}-{{ pageno }}"> <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 }}" /> </a> @@ -23,7 +23,7 @@ </div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12 modal-body"> - <a href="{{ result.img_src }}"><div class="image-container"></div></a> + <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> </div> </div> {% if result.content %}