I have a component. One of the things it does is launch a modal using the router (so that 'back' works).
The component can appear in many places in the app.
When the modal is launched, it should sit on top of the page it was launched from, with that page visible underneath. All standard stuff.
Is there any way to set this up without needing to put a page file for the dialog in each of the places it might appear?
#Routing Question
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)
https://nextjs.org/docs/app/building-your-application/routing/intercepting-routes maybe you need this
I think this requires me to make some kind of (..) folder wherever the component might be used?
yeah
I don't have much experience working with it but let me find some resources
These 2 advanced routing features have been added in NextJS 13. Knowing how to properly use intercepting and parallel routes TOGETHER makes for nice use cases and an improved UX.
-- my links
My GitHub: https://github.com/joschan21
Discord: https://discord.gg/4vCRMyzgA5
Thanks I got there in the end