mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-31 21:41:40 +08:00
parent
132535843b
commit
d74965fdd4
@ -139,7 +139,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy {
|
||||
|
||||
if (normalizedPath.EndsWith("*")) {
|
||||
var prefix = normalizedPath.Substring(0, normalizedPath.Length - 1);
|
||||
return ctx => VirtualPathUtility.ToAppRelative(ctx.Path ?? "/").StartsWith(prefix, StringComparison.OrdinalIgnoreCase) && predicate(ctx);
|
||||
return ctx => VirtualPathUtility.ToAppRelative(String.IsNullOrEmpty(ctx.Path) ? "/" : ctx.Path).StartsWith(prefix, StringComparison.OrdinalIgnoreCase) && predicate(ctx);
|
||||
}
|
||||
|
||||
normalizedPath = VirtualPathUtility.AppendTrailingSlash(normalizedPath);
|
||||
|
Loading…
Reference in New Issue
Block a user