Catch all routes #2320
Catch all routes
#2320
-
I currently have all my routes under a locale, so ($locale).cart.jsx for example. I now want to create a "catch all" before the 404 to allow for top-level landing pages (such as /summer-campaign). Remix's docs suggest doing ($locale).$.jsx, but it isn't working. Is there a specific way of doing this for Hydrogen? |
Beta Was this translation helpful? Give feedback.
Answered by
blittle
Jul 12, 2024
Replies: 1 comment 1 reply
-
It's because a route like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
blittle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's because a route like
/summer-campaign
is getting matched by the route($locale).tsx
, so it thinks that/summer-campaign
is the locale, like/en-us
. Update the logic inside that file.