In my apphost.cs file I have defined unauthorized requests to open login.cshtml.
SetConfig(new EndpointHostConfig
{
CustomHttpHandlers =
{
{HttpStatusCode.NotFound, new RazorHandler("NotFound")},
{HttpStatusCode.Unauthorized, new RazorHandler("login")},
}
});
I'm running the project self hosted. I have deployed the project to a server (Debian+Apache: ProxyPass to http://127.0.0.1:2008).
My problem is that the redirect link(querystring) links back to http://127.0.0.1:2008/People.
http://servername/login?redirect=http://127.0.0.1:2008/People
How can I override the redirect url to point to http://servername/People?