hi, I would need to redirect a user on a specific route based on the user's role, becouse i have utilized the roles system that customize the navigation menu base on role. when user login the user is redirect to nofications pages, it possible tu redirect user to specific route base on it roles ?
Best Regards
2 Answer(s)
-
0
There are alot of way to do that. For example: If your app is mvc you can change return url here by users role: https://github.com/aspnetzero/aspnet-zero-core/blob/51233d56669623ad85186cb80371489ed15ea5c1/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Controllers/AccountController.cs#L231
If your app is angular you can change return url here by users role: https://github.com/aspnetzero/aspnet-zero-core/blob/51233d56669623ad85186cb80371489ed15ea5c1/angular/src/account/login/login.service.ts#L215
-
0
Tankyou i have revolded add my custom check here https://github.com/aspnetzero/aspnet-zero-core/blob/51233d56669623ad85186cb80371489ed15ea5c1/angular/src/app/shared/common/auth/auth-route-guard.ts#L94