diff options
-rw-r--r-- | src/urls.js | 8 |
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)) ); }; |