mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +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) {
|
public IEnumerable<IRoutableAspect> GetSimilarPaths(string path) {
|
||||||
return
|
return
|
||||||
_contentManager.Query().Join<RoutePartRecord>()
|
_contentManager.Query<RoutePart, RoutePartRecord>()
|
||||||
.List()
|
.List()
|
||||||
.Select(i => i.As<RoutePart>())
|
.Select(i => i.As<RoutePart>())
|
||||||
.Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase))
|
.Where(routable => routable.Path != null && routable.Path.StartsWith(path, StringComparison.OrdinalIgnoreCase))
|
||||||
|
Reference in New Issue
Block a user