BlogEngine.Core.Web.HttpModules.UrlRewrite.RewriteBundlePathForChildBlog C# (CSharp) Method

RewriteBundlePathForChildBlog() private static method

private static RewriteBundlePathForChildBlog ( HttpContext context, string url ) : void
context System.Web.HttpContext
url string
return void
        private static void RewriteBundlePathForChildBlog(HttpContext context, string url)
        {
            if (url.Contains("/SCRIPTS/") || url.Contains("/STYLES/"))
            {
                var npath = url.Replace(Blog.CurrentInstance.RelativeWebRoot, "/");
                context.RewritePath(npath);
            }
        }