-
Sorry if this is actually a Remix issue and nothing to do with Hydrogen / the Demo Store, but I'm very confused... I want my store pages to live at
But when I go to But how can this be, when there's nothing handling Any guidance much appreciated... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It's probably because of |
Beta Was this translation helpful? Give feedback.
-
It would be really cool to somehow have a remix way around this.. Also struggled with this. Someway to validate the param and let it move to the following route fallback. |
Beta Was this translation helpful? Give feedback.
It's probably because of
($locale)
which is an optional route segment. So with the route/pages/shipping
, "pages" is evaluating as the locale, and "shipping" the page handle. Do you plan on using path-based localization? If not, the easiest thing would be to remove the($locale)
prefix on all the routes. I assume though that you also have a$.tsx
file as well. That is also a root wildcard, and renders a 404 page. You probably would want to remove that file, and update your$pageHandle.tsx
to throw a not found error if the handle doesn't exist.