diff --git a/src/Orchard.Web/Core/Routable/Services/RoutableService.cs b/src/Orchard.Web/Core/Routable/Services/RoutableService.cs index 67b9f089b..6715dc90f 100644 --- a/src/Orchard.Web/Core/Routable/Services/RoutableService.cs +++ b/src/Orchard.Web/Core/Routable/Services/RoutableService.cs @@ -117,13 +117,14 @@ namespace Orchard.Core.Routable.Services { : null; } - public IEnumerable GetSimilarPaths(string path) { - return - _contentManager.Query() - .List() - .Select(i => i.As()) - .Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase)) - .ToArray(); + public IEnumerable GetSimilarPaths(string path) + { + return + _contentManager.Query() + .Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase)) + .List() + .Select(i => i.As()) + .ToArray(); } public bool IsSlugValid(string slug) {