mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
#17808: Getting 404 after editing the home page.
A content item had a RoutePartRecord but its content type did not have the RoutePart anymore. Null ref ensued. --HG-- branch : 1.x
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Orchard.Core.Routable.Services {
|
||||
|
||||
public IEnumerable<IRoutableAspect> GetSimilarPaths(string path) {
|
||||
return
|
||||
_contentManager.Query().Join<RoutePartRecord>()
|
||||
_contentManager.Query<RoutePart, RoutePartRecord>()
|
||||
.List()
|
||||
.Select(i => i.As<RoutePart>())
|
||||
.Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase))
|
||||
|
Reference in New Issue
Block a user