mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
GetSimilarPaths materializes to soon.
--HG-- branch : 1.x extra : rebase_source : 8ecb3f7a9b1f999e9358242c810508cd827a3162
This commit is contained in:
@@ -117,12 +117,13 @@ namespace Orchard.Core.Routable.Services {
|
|||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<IRoutableAspect> GetSimilarPaths(string path) {
|
public IEnumerable<IRoutableAspect> GetSimilarPaths(string path)
|
||||||
|
{
|
||||||
return
|
return
|
||||||
_contentManager.Query<RoutePart, RoutePartRecord>()
|
_contentManager.Query<RoutePart, RoutePartRecord>()
|
||||||
|
.Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase))
|
||||||
.List()
|
.List()
|
||||||
.Select(i => i.As<RoutePart>())
|
.Select(i => i.As<RoutePart>())
|
||||||
.Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase))
|
|
||||||
.ToArray();
|
.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user