« get me outta code hell

clean up upd8.js function signatures - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-07 07:31:09 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-07 07:31:09 -0400
commitbf14c334235513c0188d71fdb53bd72f34e22e39 (patch)
tree8bc99db96345ba208cab66451bd3902cfacdc465 /src/misc-templates.js
parentf18ddd61d7430f82116b7f6003e68a548f39f766 (diff)
clean up upd8.js function signatures
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index d7b24fb..5d08270 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -771,9 +771,9 @@ function unbound_getFooterLocalizationLinks(pathname, {
   defaultLanguage,
   languages,
 }) {
-  const {toPath} = paths;
-  const keySuffix = toPath[0].replace(/^localized\./, '.');
-  const toArgs = toPath.slice(1);
+  const {urlPath} = paths;
+  const keySuffix = urlPath[0].replace(/^localized\./, '.');
+  const toArgs = urlPath.slice(1);
 
   const links = Object.entries(languages)
     .filter(([code, language]) => code !== 'default' && !language.hidden)