diff options
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 |
commit | bf14c334235513c0188d71fdb53bd72f34e22e39 (patch) | |
tree | 8bc99db96345ba208cab66451bd3902cfacdc465 /src/misc-templates.js | |
parent | f18ddd61d7430f82116b7f6003e68a548f39f766 (diff) |
clean up upd8.js function signatures
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index d7b24fbd..5d082703 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) |