Start here. This is the direct spoken answer to practice first.
Overview
The same URL should work as contextual modal navigation and as a complete page when opened directly.
I first create the real detail route so its URL renders a complete standalone page. Then a parallel modal slot intercepts navigation to that route and renders the same content inside an accessible dialog while preserving the current page behind it. Closing uses browser history when appropriate, and loading the URL directly or refreshing shows the full page rather than depending on hidden background state.