Fixing that links to tenants didn't include the scheme of the current request while including the port

This commit is contained in:
Lombiq
2014-06-14 12:04:35 +02:00
committed by Zoltán Lehóczky
parent d0f5454fc1
commit a9f2676b75

View File

@@ -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);