I have an MVC application where I am using the MVC controller to handle logging in and logging out. When I attempt to log out, I call the LogOff action on my MVC Account controller which redirects to the Login action on this controller. I have no problem calling this code and the Login action appears to run successfully. However, the last line of this action is
return View();
I can see my screen flash as if it is drawing a new page. However, I can still see http://localhost:60847/#/home in my browser instead of http://localhost:60847/Account/Login.
Is there something I need to add to the routing to allow it to handle MVC addresses? Currently, my routing is the following:
$routeProvider.when("/home", {
//controller: "homeController",
templateUrl: "app/layout/home.html"
});
$routeProvider.otherwise({ redirectTo: "/home" });
Thanks in advance!