Skip to content

Commit d87593a

Browse files
Use PreferExactMatches on project templates
1 parent d534686 commit d87593a

File tree

2 files changed

+4
-4
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@*#if (NoAuth)
2-
<Router AppAssembly="@typeof(Program).Assembly">
2+
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="true">
33
<Found Context="routeData">
44
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
55
</Found>
@@ -11,7 +11,7 @@
1111
</Router>
1212
#else
1313
<CascadingAuthenticationState>
14-
<Router AppAssembly="@typeof(Program).Assembly">
14+
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="true">
1515
<Found Context="routeData">
1616
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
1717
</Found>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@*#if (NoAuth)
2-
<Router AppAssembly="@typeof(Program).Assembly">
2+
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="true">
33
<Found Context="routeData">
44
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
55
</Found>
@@ -11,7 +11,7 @@
1111
</Router>
1212
#else
1313
<CascadingAuthenticationState>
14-
<Router AppAssembly="@typeof(Program).Assembly">
14+
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="true">
1515
<Found Context="routeData">
1616
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
1717
<NotAuthorized>

0 commit comments

Comments
 (0)