Next.js · Middle · Question 19 of 75

What are intercepting routes (.)photo/[id] for?

Explanation

On client navigation from a feed to /photo/1, the interceptor renders the photo in a modal over the feed, and the URL changes. On direct access or page reload, the full /photo/1 page opens. It's usually combined with a parallel @modal slot.

Further reading

Problem with a question

Next.js · Middle · question 19

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz