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

I want to delete /en/ path #1

Open
eaykutalp opened this issue Jul 4, 2024 · 4 comments
Open

I want to delete /en/ path #1

eaykutalp opened this issue Jul 4, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@eaykutalp
Copy link

prefixDefaultLocale: false,

not working, help me thanks.

@psephopaiktes
Copy link
Owner

Yes, as noted here, we do not currently expect to turn off the prefixDefaultLocale setting. 🥲
This is because there is a part of the process that retrieves the user's language from the URL path.
https://astro-i18n-starter.pages.dev/en/setup/


However, if the URL does not contain /[lang]/, the user is redirected through 404.html.
https://astro-i18n-starter.pages.dev/en/feature#404

For example,
https://astro-i18n-starter.pages.dev/blog/first-post/
will redirect to
https://astro-i18n-starter.pages.dev/en/blog/first-post/ .


Thank you for you feedback.

@eaykutalp
Copy link
Author

Isn't there a way to do this? I'm not a software developer, but I was going to look at your software and install multiple languages ​​in another template.

This is very important for SEO, so the root path must have a language.

@eaykutalp
Copy link
Author

hello dou you here?

@psephopaiktes
Copy link
Owner

I can't think of a way to fix this problem at this time, as it would require fixing it from the design roots.
Save the Issue as a Future Request.

SEO

The root path (/index.html) is redirected, but and OGP are set for SEO.

Please check it by typing the following in the address bar of Chrome.
view-source:https://astro-i18n-starter.pages.dev/

@psephopaiktes psephopaiktes added the enhancement New feature or request label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants