I have the following:
[Route("login")]
[AllowAnonymous]
public ActionResult Login(string returnUrl) {
ViewBag.ReturnUrl = returnUrl;
return View();
}
However, when I navigate to any [Authorized] route as an unauthenticated user, I get navigated to /Account/Login, which is an invalid route thanks to me overriding it to login. How do I tell MVC5 to use the attribute routes when redirecting in this case?