diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-01-01 23:18:03 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-01-01 23:18:03 -0400 |
commit | 0bb644e2a37ad63d86fe3b313d5f33059b3bdc43 (patch) | |
tree | ac3dcefcf53d9c5de73bd4df23b6ad2e89fb4ad4 /src/upd8.js | |
parent | 1b4a8e79e94d67444675b43c1a40c161b9d6b3db (diff) |
fix backwards slashes in hrefs on windows...
...while also not breaking the way we use the to() functions for actual output write paths!
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upd8.js b/src/upd8.js index 29063f87..daef1458 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2023,8 +2023,8 @@ writePage.paths = (baseDirectory, fullKey, directory = '', { const [ groupKey, subKey ] = fullKey.split('.'); const pathname = (groupKey === 'localized' && baseDirectory - ? urls.from('shared.root').to('localizedWithBaseDirectory.' + subKey, baseDirectory, directory) - : urls.from('shared.root').to(fullKey, directory)); + ? urls.from('shared.root').toDevice('localizedWithBaseDirectory.' + subKey, baseDirectory, directory) + : urls.from('shared.root').toDevice(fullKey, directory)); // Needed for the rare directory which itself contains a slash, e.g. for // listings, with directories like 'albums/by-name'. @@ -2048,7 +2048,7 @@ function writeSymlinks() { ]); async function link(directory, urlKey) { - const pathname = urls.from('shared.root').to(urlKey); + const pathname = urls.from('shared.root').toDevice(urlKey); const file = path.join(outputPath, pathname); try { await unlink(file); |