Repository navigation
[release/11.0] Use h1 heading in Blazor NotFound.razor template page - #70309
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Member
|
/review |
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 16:06 — with
GitHub Actions
Inactive
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 16:06 — with
GitHub Actions
Inactive
Member
|
Copilot's local review panel found no issues to raise at this commit. |
ilonatommy
approved these changes
Nov 5, 2026
kotlarmilos
approved these changes
Nov 6, 2026
Contributor
|
Hi @github-actions[bot]. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
Contributor
|
Hi @github-actions[bot]. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
This branch was previously deployed
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.
Backport of #70305 to release/11.0
/cc @dariatiurina
Use h1 heading in Blazor NotFound.razor template page
Update Blazor
NotFound.razortemplate and sample pages to use<h1>.Description
FocusOnNavigatein the Blazor Web App and Standalone Blazor WebAssembly project templates is configured withSelector="h1"inRoutes.razorandApp.razor, whileNotFound.razorrendered<h3>Not Found</h3>without an<h1>element. As a result, navigating to/not-foundhad no matchingh1focus target forFocusOnNavigateto focus.This change updates
NotFound.razorin the Blazor project templates (BlazorWeb-CSharpandComponentsWebAssembly-CSharp) and the corresponding template samples (BlazorWebAppPerPage,BlazorWebAppGlobal.Client, andBlazorWebAssemblyStandalone) to render<h1>Not Found</h1>so the page provides a matchingh1heading target forFocusOnNavigate.Relates to dotnet/aspnetcore-scenario-tests#165
Customer Impact
Keyboard and screen-reader users navigating to the Not Found route (
/not-found) in newly created Blazor Web App and Standalone Blazor WebAssembly projects do not have focus moved to the destination page heading becauseFocusOnNavigate(Selector="h1") cannot find a matching<h1>element onNotFound.razor.Regression?
Risk
Single-element markup update (
<h3>to<h1>) inNotFound.razoracross the Blazor project templates and template samples.Verification
Packaging changes reviewed?