Set languageEmbedding to “always” or “never”
Sitecore does it’s best to detect languages based on several factors, and it may or may not embed the language abbreviation into the URL when it is unsure. Set the languageEmbedding attribute of the link provider to “always” or “never” to make sure links remain consistent.