Jun 2, 2026 · 7 min read
One URL, Two Experiences: Modals That Survive a Refresh with Next.js Intercepting Routes
A modal that vanishes when you reload or share its link isn't a page — it's a trap. Here's how I used Next.js parallel and intercepting routes to make my portfolio cards open in a modal on click, yet resolve to a real, shareable, SEO-indexed page on a direct visit — without duplicating a single line of UI.
nextjs-app-routerreactfrontend