Update MvcModule.cs

This commit is contained in:
jtkech
2016-02-09 02:07:50 +01:00
parent 1248fcc826
commit ab2b88676e

View File

@@ -42,7 +42,7 @@ namespace Orchard.Mvc {
var baseUrl = new Func<string>(() => {
var url = siteService.GetSiteSettings().BaseUrl;
return !string.IsNullOrWhiteSpace(url) ? url : "http://localhost"
return !String.IsNullOrWhiteSpace(url) ? url : "http://localhost"
+ HostingEnvironment.ApplicationVirtualPath.TrimEnd('/');
});