fix: not redirect to /console after setup (#6852)

#### What type of PR is this?

/area core
/kind bug
/milestone 2.20.x

#### What this PR does / why we need it:

修复初始化登录之后,没有正确重定向到 /console 的问题。

#### Which issue(s) this PR fixes:

Fixes #6850 

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/6848/head
Ryan Wang 2024-10-13 22:55:14 +08:00 committed by GitHub
parent 149cb5d136
commit a21413e080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ public class SystemSetupEndpoint {
}
private static Mono<ServerResponse> redirectToConsole() {
return ServerResponse.temporaryRedirect(URI.create("/console")).build();
return ServerResponse.status(HttpStatus.FOUND).location(URI.create("/console")).build();
}
private Mono<Void> doInitialization(SetupRequest body) {