From e589765bb4967aeb97885892d4af4c79422e30e5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 2 Jan 2022 00:11:48 -0400 Subject: stick a / at the end of homepage path --- src/util/urls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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++}>`); -- cgit 1.3.0-6-gf8a5