File conventions
Intercepting routes
Select a destination relative to route segments rather than raw folder depth. Direct load and intercepted client navigation may show different layouts. Source: https://nextjs.org/docs/app/api-reference/file-conventions/intercepting-routes
Formal Syntax & Structure
nextjs syntaxnextjs
(.)segment, (..)segment, (..)(..)segment, (...)segmentWorking Example
Example Snippetnextjs
app/ layout.tsx page.tsx catalog/page.tsx book/[slug]/page.tsx @preview/ default.tsx page.tsx (.)book/[slug]/page.tsx [...rest]/page.tsx