mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
#18640: Fixing UrlAlternatesFactory exception
Work Item: 18640 --HG-- branch : 1.x
This commit is contained in:
@@ -22,7 +22,11 @@ namespace Orchard.DesignerTools.Services {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var request = _httpContextAccessor.Current().Request;
|
var request = httpContext.Request;
|
||||||
|
|
||||||
|
if (request == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// extract each segment of the url
|
// extract each segment of the url
|
||||||
var urlSegments = VirtualPathUtility.ToAppRelative(request.Path.ToLower())
|
var urlSegments = VirtualPathUtility.ToAppRelative(request.Path.ToLower())
|
||||||
|
|||||||
Reference in New Issue
Block a user