diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-01-02 00:11:48 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-01-02 00:11:48 -0400 |
commit | e589765bb4967aeb97885892d4af4c79422e30e5 (patch) | |
tree | 27526039619675d4e71d0631e809c9a2ca525f1e /src/util | |
parent | 0bb644e2a37ad63d86fe3b313d5f33059b3bdc43 (diff) |
stick a / at the end of homepage path
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/urls.js | 2 |
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++}>`); |