-
Notifications
You must be signed in to change notification settings - Fork 12
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
Usage with base path set in a config #21
Comments
@dallyh do you have a github repo I could look at? I’d like to see whether this is part of a known Astro v3 bug #19 (I’m thinking it is) or something else. If is related to #19, the good news is that it’s only a problem with the I wrote support for base paths, but there may be a bug in the implementation, so it could always be something else too. |
@jlarmstrongiv I've just created one here: https://github.com/dallyh/astro-i18n-base-path The issue seems to persists even on build, as when I build it with base path set and then run preview, the localized pages always return 404. |
In the demo uploaded, the base path is being duplicated, so this works: http://localhost:4321/example-base/example-base/es/. It appears |
I realized that some functions like middleware didn’t support This major upgrade also renamed some helper functions and removed all params from middleware. I can now import the |
I cannot get my head around on how to use this integration with base path. Everything works fine when the base path is not set, that is when the page is located for ex. under http://localhost:4321/projects/, but with base path, no locales get resolved and return 404 - for ex. http://localhost:4321/website-concept/en/projects/.
My config for locales is set like this:
Thanks for any help with this!
The text was updated successfully, but these errors were encountered: