Fix for handeling 404
1) I've inserted app.UseAuthentication(); prior to app.UseAuthorization(); to make sure the authentication middleware is activated.
2) I've included a fallback route app.MapFallback that redirects users to /Account/Login for any invalid URL requests.
Fix for handeling 404 1) I've inserted app.UseAuthentication(); prior to app.UseAuthorization(); to make sure the authentication middleware is activated.
2) I've included a fallback route app.MapFallback that redirects users to /Account/Login for any invalid URL requests.