- ABP Framework version: v4.2
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC): yes / no
- Exception message and stack trace:
- Steps to reproduce the issue:
When User redirects to the unauthorize page, access denied pages comes. i want to add custom page which will redirect user to that page.
e.g. I dont have permissions to Identity/Users page then i want to redirect user to different page or how can overide the existing Account/AccessDenied page?
4 Answer(s)
-
0
how can overide the existing Account/AccessDenied page?
https://docs.abp.io/en/abp/latest/UI/AspNetCore/Customization-User-Interface#overriding-a-page https://community.abp.io/articles/how-to-customize-the-login-page-for-mvc-razor-page-applications-9a40f3cd https://support.abp.io/QA/Questions/240/How-to-customize-the-login-page
-
0
how can overide the existing Account/AccessDenied page?
https://docs.abp.io/en/abp/latest/UI/AspNetCore/Customization-User-Interface#overriding-a-page https://community.abp.io/articles/how-to-customize-the-login-page-for-mvc-razor-page-applications-9a40f3cd https://support.abp.io/QA/Questions/240/How-to-customize-the-login-page
Thanks, But i know about this. I want to change that Account/AccessDenied route to my new custom page? Unfortunately i dont know where is that page located.
-
1
services.ConfigureApplicationCookie(options => { options.AccessDeniedPath = "/MyAccessDenied"; });
-
0
This question has been automatically marked as stale because it has not had recent activity.