#18527: Fixing Live Writer with virtual apps

Work Item: 18527

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-03-09 17:25:03 -08:00
parent 427799c78b
commit db685df5fc

View File

@@ -26,7 +26,7 @@ namespace Orchard.Mvc.Extensions {
public static string MakeAbsolute(this UrlHelper urlHelper, string url, string baseUrl = null) {
if(String.IsNullOrEmpty(baseUrl)) {
baseUrl = urlHelper.RequestContext.HttpContext.Request.ToRootUrlString();
baseUrl = urlHelper.RequestContext.HttpContext.Request.ToApplicationRootUrlString();
}
if(String.IsNullOrEmpty(url)) {