Late to the game, but this is what solved it for me. In the Program.cs adding this line
app.MapDefaultControllerRoute();
Then had this in my cshtml file
<a class="nav-link text-dark" asp-controller="Home" asp-action="Index">Home</a>