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

(cherry picked from commit 5da616b)
  • Loading branch information
gsmet committed Jan 21, 2025
1 parent 648777c commit b4fdc47
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 b4fdc47

Please sign in to comment.