« get me outta code hell

Merge branch 'preview' into track-data-cleanup - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:03:16 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-05 21:03:16 -0300
commit044ac1a804e0f42aaa13a9280ba68effc7a65606 (patch)
treecd6df28a76822c46cac9976781014edc98c8d41a /src
parenta3b80f08fc54cda6a6787bcd078059823026add6 (diff)
parent0ff743b1350b1d42ba23d9701a0b7acfb7501254 (diff)
Merge branch 'preview' into track-data-cleanup
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/linkTemplate.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js
index 1cf64c59..ba7c7cda 100644
--- a/src/content/dependencies/linkTemplate.js
+++ b/src/content/dependencies/linkTemplate.js
@@ -29,14 +29,16 @@ export default {
     language,
     to,
   }) {
-    let href = slots.href;
+    let href;
     let style;
     let title;
 
-    if (href) {
-      href = encodeURI(href);
+    if (slots.href) {
+      href = encodeURI(slots.href);
     } else if (!empty(slots.path)) {
       href = to(...slots.path);
+    } else {
+      href = '';
     }
 
     if (appendIndexHTML) {