How to remove "en" from url?

Vote:
 

Hi

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?

 

Thanks

#71233
May 14, 2013 16:49
Vote:
 

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

#71234
May 14, 2013 17:02
Vote:
 

Hi Johan

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

https://www.dropbox.com/s/w12qgywjzusm1fa/Screen%20Shot%202013-05-15%20at%202.45.23%20AM.png

#71240
May 14, 2013 18:47
Vote:
 

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

#71244
May 14, 2013 20:05
Vote:
 

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

#71246
May 14, 2013 20:24
Vote:
 

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.

#71333
May 16, 2013 7:20
Vote:
 

Sorry guys, 

Eric's solution is working indeed. 

Cheers

#71334
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.