mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing PathResolutionService
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Orchard.Autoroute.Services {
|
||||
|
||||
public AutoroutePart GetPath(string path) {
|
||||
var autorouteRecord = _autorouteRepository.Table
|
||||
.Where(part => part.DisplayAlias == path && part.ContentItemVersionRecord.Latest && part.ContentItemVersionRecord.Published)
|
||||
.Where(part => part.DisplayAlias == path && part.ContentItemVersionRecord.Published)
|
||||
.FirstOrDefault();
|
||||
|
||||
if (autorouteRecord == null) {
|
||||
|
Reference in New Issue
Block a user