/// <summary> /// Gets the absolute url for the Umbraco content item. /// </summary> /// <param name="id">The id of the content to look for</param> /// <returns><see cref="string"/>.</returns> public static string AbsoluteUmbracoContentUrl(int id) { string url = new UmbracoHelper(UmbracoContext.Current).UrlAbsolute(id); // Certain virtual pages such as Articulate blog pages only return a relative url. if (!url.IsAbsoluteUrl()) { string root = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority); url = new Uri(new Uri(root, UriKind.Absolute), url).ToString(); } return(url); }