« get me outta code hell

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:
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 3ad1f23..f51d0e5 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',