mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing that links to tenants didn't include the scheme of the current request while including the port
This commit is contained in:
@@ -11,7 +11,8 @@ namespace Orchard.MultiTenancy.Extensions {
|
||||
if (host.Contains(":"))
|
||||
port = host.Substring(host.IndexOf(":"));
|
||||
|
||||
var result = string.Format("http://{0}",
|
||||
var result = string.Format("{0}://{1}",
|
||||
urlHelper.RequestContext.HttpContext.Request.Url.Scheme,
|
||||
!string.IsNullOrEmpty(tenantShellSettings.RequestUrlHost)
|
||||
? tenantShellSettings.RequestUrlHost + port : host);
|
||||
|
||||
|
Reference in New Issue
Block a user