Skip to content

Commit

Permalink
Do not prefix URL when URL is already absolute
Browse files Browse the repository at this point in the history
Management URLs were prefixed twice when absolute:
http://localhost:9000http://localhost:9000/q/health

Which was defeating the logic removing the host when collecting
suppressed URIs.

Fixes quarkusio#36510
  • Loading branch information
gsmet committed Jan 16, 2025
1 parent beee3db commit 9336ec4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ public String getEndpointPath(HttpRootPathBuildItem httpRoot) {

public String getEndpointPath(NonApplicationRootPathBuildItem nonAppRoot, ManagementInterfaceBuildTimeConfig mibt,
LaunchModeBuildItem mode) {
if (absolutePath) {
return endpointPath;
}
if (management && mibt.enabled) {
var prefix = NonApplicationRootPathBuildItem.getManagementUrlPrefix(mode);
return prefix + endpointPath;
}
if (absolutePath) {
return endpointPath;
} else {
return TemplateHtmlBuilder.adjustRoot(nonAppRoot.getNormalizedHttpRootPath(), endpointPath);
}
Expand Down

0 comments on commit 9336ec4

Please sign in to comment.