Browse Source

map.html: display the intended text for the links instead of the URL

For example display "Tokyo (en)" instead of https://en.wikipedia.org/wiki/Tokyo
Alexandre Flament 2 years ago
parent
commit
7f30ac37e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/templates/simple/result_templates/map.html

+ 1 - 1
searx/templates/simple/result_templates/map.html

@@ -35,7 +35,7 @@
     <tr><th scope="row">{{ info.label }}</th><td>{{ info.value|safe }}</td></tr>
     {%- endfor -%}
     {%- for link in result.links -%}
-    <tr><th scope="row">{{ link.label }}</th><td><a class="text-info cursor-pointer" href="{{ link.url }}">{{ link.url|safe }}</a></td></tr>
+    <tr><th scope="row">{{ link.label }}</th><td><a class="text-info cursor-pointer" href="{{ link.url }}">{{ link.url_label|safe }}</a></td></tr>
     {%- endfor -%}
 </table>