BF2Statistics.Web.Bf2Stats.Controller.CorrectUrls C# (CSharp) Method

CorrectUrls() protected method

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