Skip to content

Commit 07f562f

Browse files
Copilotilonatommy
andcommitted
Revert template changes to use createScopeForErrors instead of createScopeForStatusCodePages
Co-authored-by: ilonatommy <[email protected]>
1 parent 2d9122f commit 07f562f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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", createScopeForStatusCodePages: true);
110+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForErrors: true);
111111

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

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
@@ -100,7 +100,7 @@
100100
app.UseHsts();
101101
#endif
102102
}
103-
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
103+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForErrors: true);
104104

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

0 commit comments

Comments
 (0)