Skip to content

Commit 96636ed

Browse files
committed
refactor: 修复 301 重定向问题
1 parent e0b3fc0 commit 96636ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor.Server/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
var response = context.HttpContext.Response;
4747
if(response.StatusCode == 404)
4848
{
49-
response.Redirect("/");
49+
response.Redirect("/", true);
5050
}
5151
return Task.CompletedTask;
5252
});

0 commit comments

Comments
 (0)