Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: default locale redirect to '/<page path>' isn't working in Vercel #23

Open
rawr51919 opened this issue Feb 17, 2024 · 4 comments
Open
Assignees

Comments

@rawr51919
Copy link

Possibly related to #11

I'm noticing that, with this template and derivatives thereof, when deployed on Vercel, the dropdown that changes the language is correctly redirecting from the default locale page path to '/' for the default locale, yet in production when you click the default locale in the dropdown, Vercel gives a 404 and doesn't redirect. Could this be a bug with Astro's compatibility with Vercel?

This one has me scratching my head. If anyone has any idea how to fix that I'd love to know. Thanks!

@Because789
Copy link

I ran into a similar issue yesterday while testing this template locally (dev server). And just today they merged a possible fix withastro/astro#10248. And indeed, updating Astro to 4.4.6 seems to fix the issue I had with the dynamic routes (src/pages/blog/[slug].astro).

What still is an issue, is src/pages/about.astro. Although it's almost exactly the same as src/pages/index.astro (no issues there), it won't let me change from the default language to another one.

@rawr51919
Copy link
Author

I ran into a similar issue yesterday while testing this template locally (dev server). And just today they merged a possible fix withastro/astro#10248. And indeed, updating Astro to 4.4.6 seems to fix the issue I had with the dynamic routes (src/pages/blog/[slug].astro).

What still is an issue, is src/pages/about.astro. Although it's almost exactly the same as src/pages/index.astro (no issues there), it won't let me change from the default language to another one.

for me the about page works fine

@Because789
Copy link

Will look into it tomorrow, I might have messed up something when changing languages.

Did the Astro update helped with your issue?

@zanhk
Copy link
Member

zanhk commented Mar 20, 2024

I m probably going to move away from astro-i18n-aut in favor of native localization system, as there are still problems with the integration

@zanhk zanhk self-assigned this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants