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.
  • Loading branch information
gsmet committed Nov 30, 2022
1 parent 7810646 commit e2572f4
Showing 1 changed file with 1 addition and 1 deletion.
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 e2572f4

Please sign in to comment.