Skip to content

Weird routeing issue #938

Answered by blittle
rub1e asked this question in Help
May 24, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rub1e
Comment options

Answer selected by rub1e
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants