This is probably a silly question, but it seems as though RedirectToAction() isnt working correctly.
I have an Admin Controller done as a separate area, and I have a logout task method, and I am simply trying to get the method to redirect to the website index on logout, but it is taking me to a url under the admin route instead and I have no idea why as I am calling the method giving it the controller name and action method name inside that controller. instead it takes me to: http://localhost:63374/Admin/Home
Is there something I am doing wrong?
[Route("logout")]
public async Task<ActionResult> Logout()
{
var authManager = HttpContext.GetOwinContext().Authentication;
authManager.SignOut();
return RedirectToAction("index", "home");
}