« get me outta code hell

fix broken redirect writes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-05-22 10:41:00 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-22 10:41:00 -0300
commit5f2d40478a5e50031db3a3cb48f39f6b1e2b9ef5 (patch)
tree6682908786c248ba15e8dff8074ebfc24259c1eb /src
parent5315241480955e7bfe09c1c9ea81be50a10a4318 (diff)
fix broken redirect writes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/upd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upd8.js b/src/upd8.js
index f60c57a9..63d36b0a 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2186,8 +2186,8 @@ async function main() {
                 const to = writePage.to({baseDirectory, pageSubKey: fromPath[0], paths: fromPaths});
 
                 const target = to('localized.' + toPath[0], ...toPath.slice(1));
-                const content = generateRedirectPage(title, target, {language});
-                return writePage.write(content, {paths: fromPaths});
+                const html = generateRedirectPage(title, target, {language});
+                return writePage.write({html, paths: fromPaths});
             })
         ], queueSize));
     };