mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing that URLs displayed for tenants contained two slashes between the host name and the prefix, when the application path didn't have a virtual directory (Orchard.MultiTenancy)
This commit is contained in:
@@ -15,8 +15,9 @@ namespace Orchard.MultiTenancy.Extensions {
|
||||
!string.IsNullOrEmpty(tenantShellSettings.RequestUrlHost)
|
||||
? tenantShellSettings.RequestUrlHost + port : host);
|
||||
|
||||
if (!string.IsNullOrEmpty(urlHelper.RequestContext.HttpContext.Request.ApplicationPath))
|
||||
result += urlHelper.RequestContext.HttpContext.Request.ApplicationPath;
|
||||
var applicationPath = urlHelper.RequestContext.HttpContext.Request.ApplicationPath;
|
||||
if (!string.IsNullOrEmpty(applicationPath) && !string.Equals(applicationPath, "/"))
|
||||
result += applicationPath;
|
||||
|
||||
if (!string.IsNullOrEmpty(tenantShellSettings.RequestUrlPrefix))
|
||||
result += "/" + tenantShellSettings.RequestUrlPrefix;
|
||||
|
Reference in New Issue
Block a user