0
The Login page is within the following folders Area - Identity - Pages - Account.
How to make the Login Page become a standard route, this is when the user accesses the Asp.Net Core 2.2 application go straight to the login page.
The default route at the moment is this below.
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
I tried like this and it didn’t work.
Routes.Maproute( name: "default", template: "Identity/{controller=Account}/{action=Login}/{id?}");
Managed to solve?
– Leandro Angelo
@Leandroangelo to tell the truth did not understand his answer. In Startup.Cs we can configure routes, I want login to be the home page of my application, I tried it like this and it didn’t work : Routes.Maproute( name: "default", template:?}");
– Cyberlacs
Why is the login page the home? The user will be able to continue browsing even without logging in?
– Leandro Angelo