-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: interception rewrites should support catch-all segments
- Loading branch information
Showing
7 changed files
with
116 additions
and
1 deletion.
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
3 changes: 3 additions & 0 deletions
3
...interception/app/intercepting-routes-dynamic-catchall/photos/(.)catchall/[...id]/page.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function InterceptedAuthorIdPage() { | ||
return <div id="user-intercept-page">Intercepted Page</div> | ||
} |
3 changes: 3 additions & 0 deletions
3
...n/app/intercepting-routes-dynamic-catchall/photos/(.)optional-catchall/[[...id]]/page.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function InterceptedAuthorIdPage() { | ||
return <div id="user-intercept-page">Intercepted Page</div> | ||
} |
3 changes: 3 additions & 0 deletions
3
...s-and-interception/app/intercepting-routes-dynamic-catchall/photos/catchall/[id]/page.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function AuthorIdPage() { | ||
return <div id="user-regular-page">Regular Page</div> | ||
} |
3 changes: 3 additions & 0 deletions
3
...erception/app/intercepting-routes-dynamic-catchall/photos/optional-catchall/[id]/page.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function AuthorIdPage() { | ||
return <div id="user-regular-page">Regular Page</div> | ||
} |
15 changes: 15 additions & 0 deletions
15
...parallel-routes-and-interception/app/intercepting-routes-dynamic-catchall/photos/page.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Link href="/intercepting-routes-dynamic-catchall/photos/catchall/123"> | ||
Visit Catch-all | ||
</Link> | ||
|
||
<Link href="/intercepting-routes-dynamic-catchall/photos/optional-catchall/123"> | ||
Visit Optional Catch-all | ||
</Link> | ||
</> | ||
) | ||
} |
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