This commit is contained in:
Laura Hausmann 2023-04-05 20:22:40 +02:00
parent b4e23a6ed4
commit 8c92bce3d9
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -21,7 +21,7 @@ public class RedirectController : Controller {
// tgt is urlencoded twice because authelia decodes it by one layer
var targetUrl =
$"https://https://{Vars.AuthProxySubdomain}.{dstDomain}/api/cookieproxy_stage_one?tgt={HttpUtility.UrlEncode(HttpUtility.UrlEncode(tgt))}";
$"https://{Vars.AuthProxySubdomain}.{dstDomain}/api/cookieproxy_stage_one?tgt={HttpUtility.UrlEncode(HttpUtility.UrlEncode(tgt))}";
Response.Redirect(targetUrl);
return Content($"Redirecting... <a href=\"{targetUrl}\">Click here if you are not redirected automatically</a>", "text/html");
}