mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 10:07:55 +08:00
Update MvcModule.cs
This commit is contained in:
@@ -42,7 +42,7 @@ namespace Orchard.Mvc {
|
|||||||
|
|
||||||
var baseUrl = new Func<string>(() => {
|
var baseUrl = new Func<string>(() => {
|
||||||
var url = siteService.GetSiteSettings().BaseUrl;
|
var url = siteService.GetSiteSettings().BaseUrl;
|
||||||
return !string.IsNullOrWhiteSpace(url) ? url : "http://localhost"
|
return !String.IsNullOrWhiteSpace(url) ? url : "http://localhost"
|
||||||
+ HostingEnvironment.ApplicationVirtualPath.TrimEnd('/');
|
+ HostingEnvironment.ApplicationVirtualPath.TrimEnd('/');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user