diff options
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) |