We have developed a site in en,en-gb and fr languages. We have set en-gb as default language.
Below are the diaplaying Urls in each language.
www.examplesite.com/sales ---> This is the default language (en-gb).
I want to display default language url as www.examplesite.com/en-gb/sales/.
Can you please advice how to achieve the above functionality. We are using Episerver 6.0
Thanks in advance.
What does your episerver.config file look like? The <site> tags:<sites><site ......><siteHosts>.....
I have configured in EpiserverFramework.config as below.
<siteHosts siteId="CMSMULTI"> <clear /> <add name="*" />
<add name="Multilingual.com" language="en-gb" />
The site is displaying properly. only the problem for default language corresponding language option is not displaying in the Url.
Am i missed anything here. Please advice.
Thanks and regards,Sharath
Try setting the web address prefix in admin mode:Admin --> Config --> Manage Website Languages --> Select language English (en-GB) --> Set Web address prefix to 'en-gb' and Save
I have changed the settings as you mentioned but the changes are not reflecting in the Url.
I mean the language set in the episerverframework not displaying in the URL.
Could you please suggest.
Please some one address the above issue.
I know this is an old thread, but if someone has the same problem this might be a acceptable solution:
UrlBuilder urlBuilder = new UrlBuilder(this.Request.RawUrl);
if (!urlBuilder.Path.StartsWith(string.Concat('/', CurrentPage.LanguageID, '/')))