public static string Script(this HtmlHelper helper, string path) { if (helper.ViewContext.HttpContext.IsDebuggingEnabled) { return path; } else { return path.Replace("/scripts/", "/scripts-pub/"); } }