diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-01-02 10:57:22 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-01-02 10:57:22 -0400 |
commit | 22e1c9e1f57a9d2252b6bc614ca8abb805721d4d (patch) | |
tree | 73fedbe63e266f3e9c7470befc3ab6868af7877f /src/upd8.js | |
parent | c2428d2a136d2af4ed7235240308082db32cb3f8 (diff) |
be a bit more careful with to() path resolving
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js index daef1458..12e301ca 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1792,7 +1792,7 @@ writePage.html = (pageFn, { footer.content ??= (wikiInfo.footer ? transformMultiline(wikiInfo.footer) : ''); const canonical = (wikiInfo.canonicalBase - ? wikiInfo.canonicalBase + paths.pathname + ? wikiInfo.canonicalBase + (paths.pathname === '/' ? '' : paths.pathanme) : ''); const collapseSidebars = (sidebarLeft.collapse !== false) && (sidebarRight.collapse !== false); |