Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-15565] Make root link relative to preserve protocol
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ public String getDisplayName() { | |
} | ||
|
||
public String getUrlName() { | ||
return Hudson.getInstance().getRootUrl() + "plugin/disk-usage/"; | ||
return "/plugin/disk-usage/"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jglick
Member
|
||
} | ||
|
||
@Override public String getDescription() { | ||
|
As discussed in https://issues.jenkins-ci.org/browse/JENKINS-16368 this will be wrong, if Jenkins is behind a reverse-proxy which changes the root context