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 14, 2022
1 parent 8565197 commit 3db4d37
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 3db4d37

Please sign in to comment.