From 785f0938fdc6c0b587d5f416f005ab5046260ba6 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 9 Jun 2020 01:31:34 +0200 Subject: [PATCH] [fix] add link to wikidata entities in infobox - fixes #1097 --- searx/templates/oscar/infobox.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html index 9802f11e2..de595b922 100644 --- a/searx/templates/oscar/infobox.html +++ b/searx/templates/oscar/infobox.html @@ -16,7 +16,11 @@ {%- if attribute.image -%} {{ attribute.image.alt }} {%- else -%} - {{ attribute.value }} + {% if attribute.label == 'Instance of' %} + {{ attribute.value.id }} + {% else %} + {{ attribute.value }} + {%- endif -%} {%- endif -%} {% endfor -%}