Hello Team, I need the absolute url with language prefix , tried with <%# UrlHelper.GetAbsoluteUrl("/company/about") %> but i got the output as "http://domainname.com/company/about" instead "http://domainname.com/en-us/company/about".
we get the relative url from user via configure of widget and it is subject to change in future.
Any method that provides the absolute url along with current culture prefix by providing the relative url as parameter?
LocalizationContext.CurrentCulture.CultureNameshould get you the code like en-us.
LocalizationContext.CurrentCulture.CultureName
en-us
Please, sign in to be able to submit a new answer.