mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
#18527: Fixing Live Writer with virtual apps
Work Item: 18527 --HG-- branch : 1.x
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Orchard.Mvc.Extensions {
|
|||||||
|
|
||||||
public static string MakeAbsolute(this UrlHelper urlHelper, string url, string baseUrl = null) {
|
public static string MakeAbsolute(this UrlHelper urlHelper, string url, string baseUrl = null) {
|
||||||
if(String.IsNullOrEmpty(baseUrl)) {
|
if(String.IsNullOrEmpty(baseUrl)) {
|
||||||
baseUrl = urlHelper.RequestContext.HttpContext.Request.ToRootUrlString();
|
baseUrl = urlHelper.RequestContext.HttpContext.Request.ToApplicationRootUrlString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(String.IsNullOrEmpty(url)) {
|
if(String.IsNullOrEmpty(url)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user