« get me outta code hell

urls: getURLsFromRoot: recognize localizedDefaultLanguage - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/urls.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-26 18:13:42 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-26 18:13:42 -0400
commit477e80508a8d2274b782a47b29fb6b5c59943d48 (patch)
tree654c2f88268623a5a019054b55a136e7e887135d /src/urls.js
parent1b97addab85465cadee6964dd5670dda7ad21458 (diff)
urls: getURLsFromRoot: recognize localizedDefaultLanguage
Diffstat (limited to 'src/urls.js')
-rw-r--r--src/urls.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/urls.js b/src/urls.js
index 83a8b904..2976a522 100644
--- a/src/urls.js
+++ b/src/urls.js
@@ -303,11 +303,9 @@ export function getURLsFromRoot({
     return (
       '/' +
       (groupKey === 'localized' && baseDirectory
-        ? to(
-            'localizedWithBaseDirectory.' + subKey,
-            baseDirectory,
-            ...args
-          )
+        ? to('localizedWithBaseDirectory.' + subKey, baseDirectory, ...args)
+     : groupKey === 'localizedDefaultLanguage'
+        ? to('localized.' + subKey, ...args)
         : to(targetFullKey, ...args))
     );
   };