Intercepting Routes let you mask a target URL with the current layout during navigation.
Click a product card below to navigate to its detail URL.
During in-app navigation, @modal/(.)photo/[id] should render inside the modal slot.
@modal/(.)photo/[id]
If you load the detail URL directly, photo/[id]/page.tsx renders as the full page instead.
photo/[id]/page.tsx
Docs
Loading this URL directly should render the standalone page. Navigating from the gallery should keep the gallery visible and render this content in the parallel modal slot instead.