Skip to content

Commit f1bbf65

Browse files
committed
Fix: Wrong placing of NotFoundPage parameter.
1 parent 6b439b5 commit f1bbf65

File tree

1 file changed

+2
-2
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp

1 file changed

+2
-2
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/App.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@*#if (NoAuth)
2-
<Router AppAssembly="@typeof(App).Assembly">
2+
<Router AppAssembly="@typeof(App).Assembly" NotFoundPage="typeof(Pages.NotFound)">
33
<Found Context="routeData">
4-
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" NotFoundPage="typeof(Pages.NotFound)"/>
4+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
55
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
66
</Found>
77
<NotFound>

0 commit comments

Comments
 (0)