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

Taught in

References