Fix controller reference in MvcMovie10 layout to match tutorial flow#36708
Merged
wadepickett merged 2 commits intomainfrom Jan 28, 2026
Merged
Fix controller reference in MvcMovie10 layout to match tutorial flow#36708wadepickett merged 2 commits intomainfrom
wadepickett merged 2 commits intomainfrom
Conversation
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix layout controller reference in .NET 10 sample
Fix controller reference in MvcMovie10 layout to match tutorial flow
Jan 28, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes an incorrect controller reference in the MvcMovie10 sample's shared layout file to align with the tutorial flow. Students working through Part 3 of the "First MVC App" tutorial are working with the HelloWorld controller at this stage, not the Movies controller (which is introduced later in the tutorial).
Changes:
- Updated the navbar brand link in
_Layout.cshtmlto referenceHelloWorldcontroller instead ofMoviescontroller - Aligns MvcMovie10 sample with MvcMovie90 sample which already had the correct reference
wadepickett
approved these changes
Jan 28, 2026
Contributor
|
Related to #36673 which corrected the .NET 9 version only. |
tdykstra
approved these changes
Jan 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The MvcMovie10 sample's shared layout referenced the
Moviescontroller, which doesn't exist at this stage of the tutorial. At this point we are working with the newHelloWorldcontroller as instructed in Part 3 ("Add a View").Changes
aspnetcore/tutorials/first-mvc-app/start-mvc/sample/MvcMovie10/Views/Shared/_Layout.cshtmlline 15asp-controller="Movies"toasp-controller="HelloWorld"Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.