I have been using ASP.NET Core 2.1 and when accessing as an unauthenticated user I have decided to use the [Authorize]
tag in the controller, the tag works perfectly, however, when performing the redirection, access the following url:
https://localhost:44346/Account/AccessDenied?ReturnUrl=%2FPosts%2FDelete%2F2
while the correct address should be
https://localhost:44346/Identity/Account/AccessDenied?ReturnUrl=%2FPosts%2FDelete%2F2.