0
vitaly created
Hi Halil,
How to change behavior - if user authorzied - don't show front end page and redirect to application right away?
4 Answer(s)
-
0
Hi,
You can check AbpSession.UserId in HomeController's Index action. If it is bigger than 0, redirect user to ApplicationController's Index action.
-
0
Could you give an example, please
-
0
Hi,
Change your HomeController's Index action to
public ActionResult Index() { if (AbpSession.UserId > 0) { return RedirectToAction("Index", "Application"); } return View(); }
-
0
Got it. Thank you