Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

New Identity UI Area Custom Route

$
0
0

Hi,

Using dotnet version 2.1.300-rc1-008673.

Project was created using dotnet new mvc --auth Individual. 

I added <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.1.0-preview1-final" /> to my csproj file to enable aspnet-codegenerator.

Ran dotnet aspnet-codegenerator identity -dc WebApplication1.Data.ApplicationDbContext to generate all the Identity UI files.

How would I make it so that the area name "Identity" is ignored so that I can access the login/management etc via url/Account instead of url/Identity/Account. I'm very new to the razor page side and would usually use the MapRoute but this doesn't work. I can use AddAreaPageRoute for each page to change it to url/Account in IdentityHostingStartup.cs but surely there's better way?

Look forward to your replies :)


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>