From bfd68745169e5489e5622fa1b6dc4fe41019f15b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 3 Mar 2025 01:13:06 +0100 Subject: [PATCH] Fix: wikipedia icon links now uses the "link"-special rendering which properly escapes single quotes, fix #2340 --- assets/layers/icons/icons.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/assets/layers/icons/icons.json b/assets/layers/icons/icons.json index 36784b3a64..504e4aface 100644 --- a/assets/layers/icons/icons.json +++ b/assets/layers/icons/icons.json @@ -18,7 +18,13 @@ "defaults", "in_favourite" ], - "render": "Wikipedia", + "render": { + "special": { + "type": "link", + "href": "https://wikipedia.org/wiki/{wikipedia}", + "text": "Wikipedia" + } + }, "condition": { "or": [ "wikipedia~*", @@ -29,7 +35,14 @@ { "#": "ignore-image-in-then", "if": "wikipedia=", - "then": "Wikidata" + "then": { + "special": { + "type": "link", + "class": "h-8", + "href": "https://www.wikidata.org/wiki/{wikidata}", + "text": "Wikidata" + } + } } ] },