From b99b524fdffbe72513ac7bfab6308c41d28154d6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 16 Jul 2023 12:07:40 -0300 Subject: linkTemplate: encodeURI pre-formed hrefs --- src/content/dependencies/linkTemplate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js index 98e2c8b9..dab81ad3 100644 --- a/src/content/dependencies/linkTemplate.js +++ b/src/content/dependencies/linkTemplate.js @@ -29,7 +29,9 @@ export default { let style; let title; - if (!href && !empty(slots.path)) { + if (href) { + href = encodeURI(href); + } else if (!empty(slots.path)) { href = to(...slots.path); } -- cgit 1.3.0-6-gf8a5