File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change 9494if ( ! 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 )
106106app . UseHttpsRedirection ( ) ;
You can’t perform that action at this time.
0 commit comments