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

Change routing to razor pages

$
0
0

When I added the new razor identity to my mvc project, the default route does not go to this login page. the default goes to /Account/Login but the razor is at /Identity/Account/Login. If I type in this address in the browser it works.

This is a problem because I want the first page of my app to be the loginpage and i also want to go to the loginpage if a user tries to access authorized content or his session has timed out. 

How can I change the routing to this new razor identity?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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