diff options
-rw-r--r-- | searx/templates/simple/results.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 7d97c9e06..52b474c77 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -24,8 +24,12 @@ {%- for answer in answers.values() -%} <div class="answer"> <span>{{ answer.answer }}</span> - {% if answer.url -%} - <a href="{{ answer.url }}" class="answer-url">{{ urlparse(answer.url).hostname }}</a> + {%- if answer.url -%} + <a href="{{ answer.url }}" class="answer-url" + {%- if results_on_new_tab %} target="_blank" rel="noopener noreferrer" + {%- else -%} rel="noreferrer" + {%- endif -%} + >{{ urlparse(answer.url).hostname }}</a> {% endif -%} </div> {%- endfor -%} |