astro-i18n-starter icon indicating copy to clipboard operation
astro-i18n-starter copied to clipboard

I want to delete /en/ path

Open eaykutalp opened this issue 1 year ago • 4 comments

prefixDefaultLocale: false,

not working, help me thanks.

eaykutalp avatar Jul 04 '24 07:07 eaykutalp

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.

psephopaiktes avatar Jul 04 '24 07:07 psephopaiktes

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 avatar Jul 04 '24 08:07 eaykutalp

hello dou you here?

eaykutalp avatar Jul 09 '24 14:07 eaykutalp

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 avatar Jul 10 '24 03:07 psephopaiktes

hello, how is completed i can see /en/ path

eaykutalp avatar Jan 08 '25 10:01 eaykutalp