Last post Jun 07, 2018 03:06 AM by Edward Z
May 25, 2018 09:30 PM|Sniperumm|LINK
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 :)
May 29, 2018 08:52 AM|Edward Z|LINK
I am afraid there is on configuration to set the Identity URL outside the component.
I am trying to check whether it is possible to change the URL by URL Rewrite middleware.
Jun 07, 2018 03:06 AM|Edward Z|LINK
There is no built-in configuration to configure the Route, you could check issue below on github.