#Nested Intercepting Routes

12 messages · Page 1 of 1 (latest)

analog sand
#

I want to intercept the route post under jobs dir from the dashboard dir, what should be the path after @modal

/*
  app
  |
  jobs
  | |
  | post (page.tsx)
  |   
  dashboard
  |  |
  |  @modal
  |    |
  |    (.)post
  |      |
  |      page.tsx 

*/
stone questBOT
#

🔎 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)

wild stump
analog sand
#

no, it's not working
i tried playing with the nextgram by nesting the rouet one more level and it worked modifying the path like this

wild stump
#

oh I just noticed that I have @modal at app/@modal

analog sand
#

so will it work everywhere, like on different routes?
let me try

analog sand
#

not working
getting this error :

Uncaught TypeError: initialTree is not iterable
lone inlet
#

have you tried puting the modal's jobs segment inside the parentheses with the dots dots dots

#

routes not roots

analog sand
#

do you mean this.
(...)jobs?