Hello!
I have an ecommerce remix app that needs to collect some information for order of products. Many of these products will share a few forms, and I would like to be able to dynamically render them from a parameterized route, alongside their normal routes.
Here is how my file structure is set up (still using v1)
allproducts.tsx
products
- pot
- depth.tsx
- pan
- width.tsx
- $shared
- handle.tsx
- nonstick-type.tsx
I want to share the handle and nonstick-type pages but at a dynamic route while maintaining seo friendly paths.
For example a user should be able to hit /products/pot/handle, but remix first checks if the file exists under the pot folder and throws an error. Is there a way I can get the router to fallback and check if any parameterized routes also match what were looking for and fall back to that?