Re-map default Identity Endpoints in Core App (Razor)

Joshy507 0 Reputation points
2024-12-28T19:33:57.36+00:00

I've added the default Indentity pages for an .Net Core 8 Razor application and everything appears to be working fine with the Account pages.

User's image My main question is how can I re-map the pages from "/Identity" to "/" (just for testing purposes for now)?

Currently:User's image

Wanted:

User's image

I did try adding "app.MapGroup("/").MapIdentityApi<IdentityUser>();" after my "app.UseAuthorization();", but it didn't seem to do anything.

User's image

Is this the proper way of re-routing the pages? This MapGroup line didn't appear to make any difference.

Thanks,

Josh

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,707 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.