Skip to content

Commit 01e43d1

Browse files
committed
Fix.
1 parent 46513db commit 01e43d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Components/test/testassets/Components.TestServer/RazorComponentEndpointsNoInteractivityStartup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
6464
app.UseExceptionHandler("/Error", createScopeForErrors: true);
6565
}
6666

67-
reexecutionApp.UseStatusCodePagesWithReExecute("/not-found-reexecute", createScopeForErrors: true);
67+
reexecutionApp.UseStatusCodePagesWithReExecute("/not-found-reexecute", createScopeForStatusCodePages: true);
6868
reexecutionApp.UseStaticFiles();
6969
reexecutionApp.UseRouting();
7070
RazorComponentEndpointsStartup<TRootComponent>.UseFakeAuthState(reexecutionApp);

src/Components/test/testassets/Components.TestServer/RazorComponentEndpointsStartup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
103103
await context.Response.WriteAsync("Triggered a 404 status code.");
104104
});
105105
});
106-
reexecutionApp.UseStatusCodePagesWithReExecute("/not-found-reexecute", createScopeForErrors: true);
106+
reexecutionApp.UseStatusCodePagesWithReExecute("/not-found-reexecute", createScopeForStatusCodePages: true);
107107
reexecutionApp.UseRouting();
108108

109109
reexecutionApp.UseAntiforgery();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
if (!app.Environment.IsDevelopment())
9595
#endif
9696
{
97-
app.UseExceptionHandler("/Error", createScopeForStatusCodePages: true);
97+
app.UseExceptionHandler("/Error", createScopeForErrors: 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();

0 commit comments

Comments
 (0)