public static string GetAbsolutePageUrl(Site site, Page page, object values) { UrlHelper urlHelper = MvcUtility.GetUrlHelper(); FrontRequestChannel requestChannel = site.FrontRequestChannel(); string pageUrl = FrontUrlHelper.GeneratePageUrl(urlHelper, site, page, values, requestChannel).ToString(); string host = GetHost(site); return(HttpContext.Current.Request.ToAbsoluteUrl(host, pageUrl)); }