Next.js Discord

Discord Forum

Parallel Routes

Unanswered
Albacore posted this in #help-forum
Open in Discord
AlbacoreOP
I used Next.js Parallel Route and now when I do a normal route, it does not work, only the route taken with the Link component works. I used Parallel Routes in the layout. For example, I have a /shop route. When I try to access it directly from the browser, it gives a 404 error, but when I try to access it with the Link component, I can access it.

8 Replies

Need more info on this, like folder structure etc.

Also while it might exactly be the case, try restarting your nextjs dev server and disabling cache in the browser for a quick test
AlbacoreOP
The folder structure like this:
[profile] folder => domain.com/username
shop folder => domain.com/shop
and parallel routes i use layout.tsx
like this:
but this happens:
Nile tilapia
was this ever resolved? i am getting the same thing, i am assuming i am missing something simple since this is a very straightforward use case, but can't see where the mistake is
The reason for this is most probably parallel routes are supposed to run parallel to other routes. Using the Link component is probably the only way to make this work.