-
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix duplicate child routes with PREFIX_AND_DEFAULT strategy (fixes
#292) (#294) Fixes two problems when using PREFIX_AND_DEFAULT strategy: - parent route with child routes had strange name like 'undefined__default'. Fixed by not appending default suffix if route has children. Such routes don't need name as navigating to them wouldn't really work properly anyway (need to navigate to child route). - Extra child routes were added with 'default' suffix. Fixed by not adding extra routes in children arrays. Those don't make sense as only parent routes should have extra route with no locale prefix.
- Loading branch information
Showing
1 changed file
with
27 additions
and
7 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