#Intercepting route
8 messages · Page 1 of 1 (latest)
🔎 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)
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
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
tried but dont think it worked like that too.
for now, i just rename it to /preview/[id] for modal and when i refresh at /preview/[id] i redirect > /profile/[id] 
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
Hm, weird. I actually tried that yesterday.
I added an onClick handler to that link (View Profile) and just called location.reload() within that handler. That successfully reloaded the page