diff options
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index 3ad1f233..f51d0e5c 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -396,9 +396,9 @@ export function getFooterLocalizationLinks(pathname, { { json: { 'meta.languageName': b } } ) => a < b ? -1 : a > b ? 1 : 0) .map(strings => html.tag('span', html.tag('a', { - href: (strings.code === languages.default.code + href: (strings.baseDirectory === languages.default.baseDirectory ? to('localizedDefaultLanguage' + keySuffix, ...toArgs) - : to('localizedWithBaseDirectory' + keySuffix, strings.code, ...toArgs)) + : to('localizedWithBaseDirectory' + keySuffix, strings.baseDirectory, ...toArgs)) }, strings.json['meta.languageName']))); return html.tag('div', |