Replies: 2 comments
-
I did not test this, but I think you could achieve this by doing the following: Create a separate The middleware will take care of redirecting users to the proper country code if there is none present in the url, so you can safely link to Hope this guides you into the right direction! Let me know how it works out. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the heads up, @VariableVic. In the end, aside from the
|
Beta Was this translation helpful? Give feedback.
-
This could be a common use case, as the effort to maintain a blog/magazine in different languages/regions could only be possible for huge multinational corporations.
Since all the pages in this starter repo are under the
[countryCode]
folder, if we move theblog
pages outside that folder, then the links in the top nav get broken because the country code is no longer available.How can we keep the blog pages like this (domain.ltd/blog/my-post-title) while the other medusa pages keep the country code:
/es/cart
,fr/checkout
, etcBeta Was this translation helpful? Give feedback.
All reactions