-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(router): exclude route groups in scoring for sorting (#2792)
This PR fixes an issue in the route sorting logic when comparing a route segment with a group vs a segment without one. - `/(app)/[org]/[app]/index.ts` - `/auth/login.ts` When determing the order of these two routes we need to skip over the `(app)` group to the next non-group segment. This ensures that we are only scoring actual segments with each other and non-existing ones.
- Loading branch information
1 parent
0864559
commit 70d6cbd
Showing
2 changed files
with
104 additions
and
9 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