Fix url
This commit is contained in:
parent
b4e23a6ed4
commit
8c92bce3d9
|
@ -21,7 +21,7 @@ public class RedirectController : Controller {
|
||||||
|
|
||||||
// tgt is urlencoded twice because authelia decodes it by one layer
|
// tgt is urlencoded twice because authelia decodes it by one layer
|
||||||
var targetUrl =
|
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);
|
Response.Redirect(targetUrl);
|
||||||
return Content($"Redirecting... <a href=\"{targetUrl}\">Click here if you are not redirected automatically</a>", "text/html");
|
return Content($"Redirecting... <a href=\"{targetUrl}\">Click here if you are not redirected automatically</a>", "text/html");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue