mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -424,7 +424,7 @@ namespace Orchard.OutputCache.Filters {
|
||||
if (!VirtualPathUtility.IsAbsolute(redirectUrl)) {
|
||||
var applicationRoot = new UrlHelper(filterContext.HttpContext.Request.RequestContext).MakeAbsolute("/");
|
||||
if (redirectUrl.StartsWith(applicationRoot, StringComparison.OrdinalIgnoreCase)) {
|
||||
redirectUrl = redirectUrl.Substring(applicationRoot.Length);
|
||||
redirectUrl = "~/" + redirectUrl.Substring(applicationRoot.Length);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user