1

I am using Sitecore with SXA, I need to embed a language to the URL. I know I can do it from configuration to make the languageEmbedding=always, but what I need is to add the language when I hit the domain of the site, like when I write https://{{domain}}/ by default the "en" language to be embedded to the domain of the site. Is there any extra configuration to do that?

2
  • Did you try to change Language field in Site Grouping at this path: /sitecore/content/<TenantName>/<SiteName>/Settings/Site Grouping/<SiteName> Commented Dec 28, 2021 at 13:14
  • yes it is english by default, but the language not embeded in the url when open the domain url Commented Dec 28, 2021 at 13:42

1 Answer 1

1

You can enable the language Embedding by using the configuration

languageEmbedding=always

Then you disable the other by using this tutorial https://www.codebrary.com/2021/07/hide-the-language-embedding-for-a-specific-language-in-sitecore-multilingual-site.html. And leave only the the domain name where you want to have a language Embedding

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.