#18640: Fixing UrlAlternatesFactory exception

Work Item: 18640

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-04-27 14:26:33 -07:00
parent 4398c259e6
commit 0690cc53d4

View File

@@ -22,7 +22,11 @@ namespace Orchard.DesignerTools.Services {
return null;
}
var request = _httpContextAccessor.Current().Request;
var request = httpContext.Request;
if (request == null) {
return null;
}
// extract each segment of the url
var urlSegments = VirtualPathUtility.ToAppRelative(request.Path.ToLower())