Hello. I'm working on social media app. Here's file/folder structure of my app directory:
app
│ favicon.ico
│ globals.css
│ layout.tsx
│ page.tsx
│
├───@dialog
│ │ default.tsx
│ │
│ └───(.)post
│ └───[id]
│ page.tsx
│
└───post
├───new
│ page.tsx
│
└───[id]
page.tsx
As you can see I'm using intercepting routes to display post details in dialog instead of redirecting user to separate page.
You can also notice I have /post/new route (which takes me to form to create new post). Well I'm facing issue with that /post/new route. When I try to go to that route, I get 404 Not Found error, however hard-reload successfully takes me to the form. So I'm guessing issue is I don't have intercepting route for /post/new route. Has anyone faced this issue before? And how to fix it?