Skip to content
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

Description

@jamesgurung

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions