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?
-
Did you try to change Language field in Site Grouping at this path: /sitecore/content/<TenantName>/<SiteName>/Settings/Site Grouping/<SiteName>– Raman GuptaCommented 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– shimaa elsayedCommented Dec 28, 2021 at 13:42
Add a comment
|
1 Answer
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