/// <summary> /// This method will reformat all base url's to point to the requested /// hostname and bf2stats querypath. /// </summary> /// <param name="source"></param> /// <param name="Model"></param> /// <returns></returns> protected string CorrectUrls(string source, BF2PageModel Model) { return(Regex.Replace(source, "http://.*?/Bf2stats", Model.Root, RegexOptions.IgnoreCase)); }
/// <summary> /// This method will reformat all base url's to point to the requested /// hostname and bf2stats querypath. /// </summary> /// <param name="source"></param> /// <param name="Model"></param> /// <returns></returns> protected string CorrectUrls(string source, BF2PageModel Model) { return Regex.Replace(source, "http://.*?/Bf2stats", Model.Root, RegexOptions.IgnoreCase); }