Skip to content

Commit

Permalink
fix: not redirect to /console after setup (#6852)
Browse files Browse the repository at this point in the history
#### 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
```
  • Loading branch information
ruibaby authored Oct 13, 2024
1 parent 149cb5d commit a21413e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private static boolean isHtmlRequest(ServerRequest request) {
}

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) {
Expand Down

0 comments on commit a21413e

Please sign in to comment.