Skip to content

Commit 46513db

Browse files
committed
Fix template tests.
1 parent 316556f commit 46513db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Program.Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static void Main(string[] args)
107107
#endif
108108
}
109109

110-
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForErrors: true);
110+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
111111

112112
#if (HasHttpsProfile)
113113
app.UseHttpsRedirection();

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@
9494
if (!app.Environment.IsDevelopment())
9595
#endif
9696
{
97-
app.UseExceptionHandler("/Error", createScopeForErrors: true);
97+
app.UseExceptionHandler("/Error", createScopeForStatusCodePages: true);
9898
#if (HasHttpsProfile)
9999
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
100100
app.UseHsts();
101101
#endif
102102
}
103-
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForErrors: true);
103+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
104104

105105
#if (HasHttpsProfile)
106106
app.UseHttpsRedirection();

0 commit comments

Comments
 (0)