Optional Catchall intercepting parallel routes #67802
The-Code-Monkey
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
Currently Building a eccommerce website that can have multiple products on one product page, so i need to have an optional second route param that is for filtering the product so you can share that specific one, yes this could be done with url query strings but I want to use routes as thats easier to read in my opinion.
But obviously i want to use the @modal functionality as shown in the docs to create a popup on the search pages. because of this im doing
search -> @modal -> (...)listing -> [slug] -> [[...productSlug]] -> page.tsx
even with the default.tsx in the correct place at search -> @modal -> default.tsx.
Next is throwing the error
No default component was found for a parallel route rendered on this page. Falling back to nearest NotFound boundary.
what would it take to allow this functionality??
Proposal
Implement it however makes the most sense to you guys but I think all routing features should be available for all route types no matter where or what they are.
I've never contributed to the next repo so i wouldnt be sure on where to start from but i could take a look next weekend if someone was to point me to the correct file that this sort of logic should be place into.
Beta Was this translation helpful? Give feedback.
All reactions