This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Setting [Route("/")] blocks MapSpaFallbackRoute() #1189
Closed
Description
Repro
yo aspnetcore-spa
(Select "Vue")
dotnet run
Navigating to "/counter" in the address bar correctly opens the relevant SPA route.
Now edit in HomeController.cs
:
[Route("/")] // Add this line
public IActionResult Index()
{
return View();
}
dotnet run
Navigating to "/counter" in the address bar no longer works (HTTP 404).
Metadata
Metadata
Assignees
Labels
No labels