Files
BeWoPlaner/Host/BeWo.Master.cs
2016-06-27 01:45:38 +02:00

35 lines
691 B
C#

using System;
using System.Linq;
using System.Web.UI;
using BeWo.Data;
using BS.Shared;
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"));
}
}
}
}