You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/llm/claude.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -598,6 +598,8 @@ The `NotFoundPage` parameter was added in .NET 10 and requires a component with
598
598
599
599
600
600
601
+
17
602
+
09
601
603
That is not a proper fix.
602
604
NotFound is deprecated.
603
605
We must use notfoundpage
@@ -617,4 +619,13 @@ razor
617
619
</Router>
618
620
The Blazor project template now includes a NotFound.razor page by default. This page automatically renders whenever NotFound is called in your app, making it easier to handle missing routes with a consistent user experience.
619
621
Please review and fix.
620
-
Please return full files for all files that changed.
622
+
Please return full files for all files that changed.
623
+
624
+
You're right — in .NET 10, `NotFoundPage` requires a routable component with a `@page` directive. I need to add `@page` to `NotFound.razor` and update `Routes.razor` to use the `NotFoundPage` parameter properly.Two files changed:
625
+
626
+
**`NotFound.razor`** — Added `@page "/not-found"` so it's a routable component (which `NotFoundPage` requires). Also added a `<PageTitle>` and a back-to-home link for better UX.
627
+
628
+
**`Routes.razor`** — Kept `NotFoundPage="typeof(NotFound)"` as you originally had, and removed the old `<NotFound>` render fragment since it's no longer supported in .NET 10.
0 commit comments