« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/linkTemplate.js4
1 files changed, 3 insertions, 1 deletions
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);
     }