Skip to content

Start MVC: Views tutorial points to wrong controller in layout #36706

@wadepickett

Description

@wadepickett

Description

The layout file shows the movies controller but should show the new helloworld controller hookup:

In the .NET 10 version of the sample shared layout at line 15:

<a class="navbar-brand" asp-area="" asp-controller="Movies" asp-action="Index">Movie App</a>

aspnetcore/tutorials/first-mvc-app/start-mvc/sample/MvcMovie10/Views/Shared/_Layout.cshtml

<a class="navbar-brand" asp-area="" asp-controller="Movies" asp-action="Index">Movie App</a>

should be

<a class="navbar-brand" asp-area="" asp-controller="HelloWorld" asp-action="Index">Movie App</a>

This has already been fixed for the .NET 9 sample, just fix the .NET 10 sample.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-view?view=aspnetcore-10.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/first-mvc-app/adding-view.md

Document ID

00c2c01d-d235-2d2d-5c96-1f33a9314382

Platform Id

e81aa33a-13c8-c305-33ec-fcad6bfc8d6b

Article author

@wadepickett

Metadata

  • ID: 788d46c9-a91a-2788-8db7-b53c37b512f2
  • PlatformId: e81aa33a-13c8-c305-33ec-fcad6bfc8d6b
  • Service: aspnet-core
  • Sub-service: tutorials

Related Issues


Associated WorkItem - 548458

Metadata

Metadata

Type

No type
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