(dashboard)/settings. What will the user see when navigating to /dashboard/settings?app/(dashboard)/layout.tsx export default function DashboardLayout({ children }) { return ( <div> <h1>Dashboard</h1> {children} </div> ) } app/(dashboard)/settings/page.tsx export default function Settings() { return <p>Settings Page</p> }
In Next.js, intercepting routes allow you to render nested layouts. The (dashboard) folder acts as a layout wrapping the settings page. So the output includes both the dashboard heading and the settings content.
Next.js uses parentheses (...) to define intercepting routes. Square brackets [] are for dynamic segments, curly braces and angle brackets are invalid.
Profile Page
}The layout component must include {children} in its returned JSX to render nested pages. Without it, nested content is not shown.
/dashboard/(notifications) renders which content?Parallel intercepting routes let you show multiple UI parts simultaneously. The dashboard layout wraps the notifications page, and settings is hidden unless explicitly routed.
Intercepting routes allow showing multiple UI parts at once (parallel UI) while keeping URLs clean and flexible. This is useful for layouts like sidebars or modals that appear alongside main content.