I want to just get a hold of the url from a Url property. How can I do this without it looking like this: /link/6d17f8c20ee240c8b3b8aaa0bfc7401a.aspx?id=5&epslanguage=sv ?
string result = string.Empty;
ServiceLocator.Current.GetInstance<IPermanentLinkMapper>().TryToMapped(url, out result);
You should be able to use ServiceLocator.Current.GetInstance<EPiServer.Web.Routing.UrlResolver().GetUrl(string internalUrl). UrlResolver also has a static property Current if you prefer that.
In MVC views another option is to use the extension method ContentUrl for UrlHelper (resides in namespace EPiServer.Web.Mvc.Html)