# Conflicts: # .gitignore # BeWo/DebugConfig.cs # BeWo/ServiceProxy/Generated.cs # Data/ASPHibernateSessionManager.cs # Host/Web.config # Service/Service.csproj # Service/ServiceContracts/IAccountingService.cs # Service/ServiceImplementations/AccountingServiceImp.cs # Shared/Core/Utils.cs # Shared/DataContracts/InvoiceBaseDC.cs # Shared/Shared.csproj
31 lines
651 B
C#
31 lines
651 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Web.UI;
|
|
|
|
namespace Host
|
|
{
|
|
public partial class BeWo : MasterPage
|
|
{
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
var tenant = Request.Params["k"];
|
|
if (String.IsNullOrEmpty(tenant))
|
|
{
|
|
tenant = Request.Params["tenant"];
|
|
}
|
|
if (!String.IsNullOrEmpty(tenant))
|
|
{
|
|
var url = Request.Url;
|
|
|
|
Response.Redirect(String.Format("https://{0}/mobil/login/{1}", url.Host, tenant));
|
|
}
|
|
else
|
|
{
|
|
Response.Redirect(String.Format("https://mobile.bewoplaner.de"));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
} |