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?
Try to disable all other languages in admin mode under "Manage Websites Languages".
As I said, there is only one language enabled in my site. see my screenshot below
uiShowGlobalizationUserInterface must be set to false in episerver.config aswell. If I'm not mistaken.
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
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.
Eric's solution is working indeed.