intercepting routes
Routes that show a different page, often a modal, when you navigate to a URL from inside the app, while a direct visit shows the normal page.
In more detail
Folders prefixed with (.), (..) or (...) intercept a route relative to the current one. Combined with a parallel @modal slot, clicking a photo opens it in an overlay with a shareable URL, and refreshing shows the full photo page.
Related terms
- parallel routes — Rendering several pages side by side in one layout, each from a folder prefixed with @, such as @analytics.
- modal — A window that appears over the page and blocks the content behind it until it is closed.
- client-side navigation — Moving to a new route inside the app without a full page reload, fetching only what changed.
Taught in
- Route Groups & Private Folders: Modular Structures — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture