#Intercepting route

8 messages · Page 1 of 1 (latest)

dim marten
#

Is i possible to create something like this:

/app list a feed of profile

click view profile, intercept to show modal of profile but if i click view profile on button it should show the page without intercepting it?

is there a way to opt out intercepting or cancel it?

patent craneBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

dim marten
#

this is /app

#

when i click view profile, modal intercepts

but in the modal, if i click view profile i want to show the full page instead of intercept

tardy kayak
#

I don't think there is a Next.js-way of doing this. However, you could just do a reload of the current page location.reload() for now

dim marten
#

so now i can

"view profile" : /profile/[id]

"check availbility" : /profile/[id]/book

without it being intercepted, using the "preview" as the intercepted and redirect to correct route

tardy kayak