« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/urls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/urls.js b/src/util/urls.js
index 5f1d6eb0..12a1651f 100644
--- a/src/util/urls.js
+++ b/src/util/urls.js
@@ -38,7 +38,7 @@ export function generateURLs(urlSpec) {
         const rebasePrefix = '../'.repeat((fromGroup.prefix || '').split('/').filter(Boolean).length);
 
         const pathHelper = (toPath, toGroup) => {
-            let target = toPath;
+            let target = (toPath === '/' ? '' : toPath);
 
             let argIndex = 0;
             target = target.replaceAll('<>', () => `<${argIndex++}>`);