Repository navigation
Use h1 heading in Blazor NotFound.razor template page - #70305
Merged
ilonatommy merged 1 commit intoNov 4, 2026
Merged
ilonatommy merged 1 commit into
ilonatommy merged 1 commit into
Conversation
Co-authored-by: Copilot App <[email protected]>
dariatiurina
marked this pull request as ready for review
November 4, 2026 13:05
dariatiurina
requested review from
ilonatommy
and
a balanced review from Copilot
November 4, 2026 13:05
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Not Found heading updates.
No open issues 🎉
What changed in this PR
Updates Blazor Not Found pages to provide an <h1> heading matching the existing FocusOnNavigate selector.
Changes:
- Replaces
<h3>Not Found</h3>with<h1>Not Found</h1>in both project templates. - Applies the same change to three corresponding samples, leaving routes, layouts, and message text unchanged.
| File | Description |
|---|---|
src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Pages/NotFound.razor |
Adds the matching heading target in the standalone WebAssembly template. |
src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Components/Pages/NotFound.razor |
Adds the matching heading target in the Blazor Web App template. |
src/Components/WebAssembly/Samples/BlazorWebAssemblyStandalone/Pages/NotFound.razor |
Aligns the standalone WebAssembly sample heading. |
src/Components/Samples/BlazorWebAppPerPage/Components/Pages/NotFound.razor |
Aligns the per-page interactivity sample heading. |
src/Components/Samples/BlazorWebAppGlobal.Client/Pages/NotFound.razor |
Aligns the global interactivity client sample heading. |
Review effort: Balanced
ilonatommy
approved these changes
Nov 4, 2026
ilonatommy
enabled auto-merge (squash)
November 4, 2026 13:40
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 14:15 — with
GitHub Actions
Inactive
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 14:15 — with
GitHub Actions
Inactive
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 14:16 — with
GitHub Actions
Inactive
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 14:18 — with
GitHub Actions
Inactive
ilonatommy
had a problem deploying
to
copilot-pat-pool
November 4, 2026 14:20 — with
GitHub Actions
Failure
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 14:22 — with
GitHub Actions
Inactive
Contributor
|
Confidence that documentation is needed: 80% Drafted docs update to the NotFound.razor template snippets in the Blazor routing and navigation articles. Documentation surfaces considered
|
ilonatommy
temporarily deployed
to
copilot-pat-pool
November 4, 2026 14:22 — with
GitHub Actions
Inactive
Contributor
Author
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
5 of 10 tasks
wtgodbe
pushed a commit
that referenced
this pull request
Nov 13, 2026
Co-authored-by: Daria Tiurina <[email protected]> Co-authored-by: Copilot App <[email protected]>
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.
Use
h1heading in BlazorNotFound.razortemplate pageUpdate Blazor
NotFound.razortemplate and sample pages to use<h1>instead of<h3>.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