mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #447] [MERGED] fix: App Router route-group and slot collision #578
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#578
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/447
Author: @JaredStowell
Created: 3/11/2026
Status: ✅ Merged
Merged: 3/11/2026
Merged by: @james-elicx
Base:
main← Head:jstowell/fix-app-route-group-collisions📝 Commits (5)
4f222c6Fix app router route-group conflictsc86efe8Review app router slot discoveryaf29375Merge remote-tracking branch 'origin/main' into jstowell/fix-app-route-group-collisions25db7f7fix: address review feedback from bonk91be782fix: remove now-unused normalizeVisibleRouteSegments, add doc comment to convertSegmentsToRouteParts📊 Changes
3 files changed (+334 additions, -23 deletions)
View changed files
📝
packages/vinext/src/routing/app-router.ts(+88 -22)📝
packages/vinext/src/routing/route-validation.ts(+15 -1)📝
tests/route-sorting.test.ts(+231 -0)📄 Description
Fix App Router collision handling when multiple filesystem entries resolve to the same visible URL.
This changes route discovery and validation to:
/fooand/foo/as the same route during validationroute.tshandlersDetails
In
app-router.ts:ownerDirmetadata(slot name, owner dir)instead of slot name aloneIn
route-validation.ts:Tests
Added regressions for:
(a)/aboutvs(b)/aboutroute.tsVerification
Passed:
pnpm test tests/route-sorting.test.tspnpm test tests/routing.test.tspnpm test tests/app-router.test.tspnpm run fmtpnpm run typecheck🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.