📚 Subject area/topic
getRelativeLocaleUrl/getAbsoluteLocaleUrl
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/reference/modules/astro-i18n/#getrelativelocaleurl
📋 Description of content that is out-of-date or incorrect
It seems that the following example is incorrect:
getRelativeLocaleUrl("fr", "");
// returns /fr
it should be either this:
getRelativeLocaleUrl("fr", "");
// returns /fr/
or an empty string should not be allowed
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
Relevant discussion: withastro/astro#13032
📚 Subject area/topic
getRelativeLocaleUrl/getAbsoluteLocaleUrl📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/reference/modules/astro-i18n/#getrelativelocaleurl
📋 Description of content that is out-of-date or incorrect
It seems that the following example is incorrect:
it should be either this:
or an empty string should not be allowed
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
Relevant discussion: withastro/astro#13032