Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9e4d718d
Unverified
Commit
9e4d718d
authored
Jun 09, 2026
by
Joseph
Committed by
GitHub
Jun 09, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: root-params highligth fixes (#94620)
Once again, reformatting broke the highlights
parent
3d920355
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
next-root-params.mdx
...01-app/03-api-reference/04-functions/next-root-params.mdx
+2
-2
No files found.
docs/01-app/03-api-reference/04-functions/next-root-params.mdx
View file @
9e4d718d
...
...
@@ -61,7 +61,7 @@ Given this file structure:
Only
`lang`
is
a
root
parameter
.
`slug`
is
a
regular
route
parameter
:
```tsx filename="app/[lang]/posts/[slug]/page.tsx" highlight={1,
5
} switcher
```tsx filename="app/[lang]/posts/[slug]/page.tsx" highlight={1,
7
} switcher
import { lang } from 'next/root-params'
export default async function PostPage(
...
...
@@ -268,7 +268,7 @@ Since `id` does not exist in the marketing root layout, `await id()` returns `un
Root parameters work with [catch-all and optional catch-all](/docs/app/api-reference/file-conventions/dynamic-routes#catch-all-segments) segments:
```tsx filename="app/docs/[...path]/layout.tsx" highlight={
4
} switcher
```tsx filename="app/docs/[...path]/layout.tsx" highlight={
6
} switcher
import { path } from '
next
/
root
-
params
'
export default async function DocsLayout(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment