Skip to content

Commit 9b4b120

Browse files
committed
Restore re-execution middleware in templates.
1 parent 29f49f3 commit 9b4b120

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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

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

110+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
110111
#if (HasHttpsProfile)
111112
app.UseHttpsRedirection();
112113

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-
103+
app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
104104
#if (HasHttpsProfile)
105105
app.UseHttpsRedirection();
106106

0 commit comments

Comments
 (0)