forked from nuxt-modules/i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Locale prefixes missing for child routes with custom paths
If one assigned (in component options or pages object) custom, absolute paths for routes and those routes were child routes, then those routes didn't get the locale prefix assigned as prefix was never added to child routes. That wasn't a problem if route was a top-level route or no custom paths were assigned as then the path was relative and didn't need locale prefix to be added. Fix by also adding locale prefix for routes that are child routes with absolute path. Resolves nuxt-modules#359
- Loading branch information
Showing
3 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters