Now, when somebody logout- i pass to logout action url, from which page he did it. But the problem, that i cant fire controller's action of url, where he pressed exit.
For example, user was on page
site.com/cabinet/home/index
and here pressed url like:
site.com/Account/LogOut/?returnURL=/cabinet/home/index
public ActionResult LogOut(string returnURL)
{
// Need to RedirectToAction(...)
return Redirect(returnURL);
}
So, if i redirect him to returnURL- nothing gonna happen in my controller (even not in controller,- in View, which gonna be redrawen for unathorized user (not the same interface for auth and not auth user)).
So, should i extract controller, action, area (?), params and only after this make RedirectToAction? Or any other ways to make controller be fired, when u know only url?
Thx.
return Redirect("/cabinet/home/index");it doesn't trigger the Index action of the Home controller in the Cabinet area? What does the browser show you? Maybe it's a caching problem?