Files
BeWoPlaner/Host/BeWo.Master.cs
Rene Evertz 375ba4b36b Merge branch 'master' into feature_rene_17_xrechnung
# 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
2025-05-26 13:05:25 +02:00

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"));
}
}
}
}