Try our conversational search powered by Generative AI!

How to remove "en" from url?



I only used one language in my application and I've already set the default language in CMS admin. However, when I called @Html.UrlLink(<Url Property>) helper method, it always generate the "en" in the url. I can use ConvertToExternalUrl to eliminate this.

anyone encountered the same issue? do you use the same technique to remove that?



May 14, 2013 16:49

Try to disable all other languages in admin mode under "Manage Websites Languages".

May 14, 2013 17:02

Hi Johan

As I said, there is only one language enabled in my site. see my screenshot below

May 14, 2013 18:47

uiShowGlobalizationUserInterface must be set to false in episerver.config aswell. If I'm not mistaken.

May 14, 2013 20:05

You can also mapp the languange i episerverframework.config for a specific domain/url. Look at the mappings section and add language="en" for you default adress. This will ensure that you language is mapped to one specific adress you can also add other for instance map the .se domain to swedisdh and the .com to English

May 14, 2013 20:24

Hi Guys

Thanks for you help.

However, none of the above the solution worked.  I am aksing when I call Html.UrlLink helper by pass the Url property, it always generate the language in the link.

May 16, 2013 7:20

Sorry guys, 

Eric's solution is working indeed. 


May 16, 2013 7:54
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.