Skip to content

Commit

Permalink
Fix config editor when using HTTPS
Browse files Browse the repository at this point in the history
Fixes quarkusio#29431

This is a workaround though. The core of the problem is that when in
HTTPS, event.request().absoluteURI() returns an HTTP url, which is wrong
and leads to the redirect not working.

(cherry picked from commit e2572f4)
  • Loading branch information
gsmet committed Dec 2, 2022
1 parent cf857a7 commit 3b31bda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void run() {
protected void actionSuccess(RoutingContext event) {
if (!event.response().ended()) {
event.response().setStatusCode(HttpResponseStatus.SEE_OTHER.code()).headers()
.set(HttpHeaderNames.LOCATION, event.request().absoluteURI());
.set(HttpHeaderNames.LOCATION, event.request().uri());
event.response().end();
}
}
Expand Down

0 comments on commit 3b31bda

Please sign in to comment.