mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 05:13:28 +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:
parent
b666feda89
commit
7fd4a55a82
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user