Getting a 404 page when using the parallel route and catch-all route together. Please help.
Unanswered
Uni Mocha posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/278302453466660864/975aa9d0df7951462a662d8c311325fb.webp?size=256)
Uni MochaOP
I'm currently using nextjs 13.5.6 (latest), and I'm using the app route.
I saw on the Parallel routes page of the official documentation that you can use a catch-all route, so I tried to use it.
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#dismissing-a-modal
Currently, I have defined a Route Group called (default-layout) and defined a layout.tsx in it to render the header and body through a parallel route, so I have configured the directory like image.
When accessing with '/', page.tsx is rendered just below @header, so header is displayed normally.
However, when accessing the '/search/nearby' page, the page.tsx inside [...catchAll] is rendered and the header with the back button is displayed, but a 404 page is displayed.
Please help me if I'm doing something wrong or if there is a bug for this. 😢
I saw on the Parallel routes page of the official documentation that you can use a catch-all route, so I tried to use it.
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#dismissing-a-modal
Currently, I have defined a Route Group called (default-layout) and defined a layout.tsx in it to render the header and body through a parallel route, so I have configured the directory like image.
When accessing with '/', page.tsx is rendered just below @header, so header is displayed normally.
However, when accessing the '/search/nearby' page, the page.tsx inside [...catchAll] is rendered and the header with the back button is displayed, but a 404 page is displayed.
Please help me if I'm doing something wrong or if there is a bug for this. 😢
![Image](https://cdn.discordapp.com/attachments/1164555117123600475/1164555117652086814/image.png?ex=6543a378&is=65312e78&hm=d1e8e111e701b2088738cde6131d170b525c732145fcdacc3d1aacf7bcba630d&)
![Image](https://cdn.discordapp.com/attachments/1164555117123600475/1164555117949886605/image.png?ex=6543a378&is=65312e78&hm=bbafe2d9d8e248adba025f39513038aa49fdd7ff23ab7179d5d7644697d5f6d7&)
![Image](https://cdn.discordapp.com/attachments/1164555117123600475/1164555118298005655/image.png?ex=6543a378&is=65312e78&hm=10ca2c1f5c93ca25f70b6803f555c362137b094a963a8dff9abaac2471e3303d&)
![Image](https://cdn.discordapp.com/attachments/1164555117123600475/1164555118633558066/image.png?ex=6543a378&is=65312e78&hm=2bc260c32ddf79961e6ed96b48adf06e1ba0f8ed605bef28ec3ecb334a1fb26d&)
![Image](https://cdn.discordapp.com/attachments/1164555117123600475/1164555118901985391/image.png?ex=6543a378&is=65312e78&hm=657fa616d603baeeb0c8b9709933846fb24a24fd9c2dbef7a63014abe567f8c4&)
![Image](https://cdn.discordapp.com/attachments/1164555117123600475/1164555119153647676/image.png?ex=6543a378&is=65312e78&hm=b523e993b35756b0482f194b2dd1151fbc0c5e9a3bdda6f9464ffbba082b31c0&)
1 Reply
![Avatar](https://cdn.discordapp.com/avatars/278302453466660864/975aa9d0df7951462a662d8c311325fb.webp?size=256)
Uni MochaOP
plz...