Skip to content

Commit

Permalink
[JENKINS-42877] Fix icon not being displayed when it's a folder confi…
Browse files Browse the repository at this point in the history
…guration.
  • Loading branch information
Evaristo Gutiérrez committed Mar 17, 2017
1 parent ee0e4dc commit a22f855
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Expand Up @@ -82,7 +82,7 @@ public String getIconFileName() {
}

/**
* used by index.jelly to resolve the correct path to the icon (see JENKINS-24441)
* used by configfiles.jelly to resolve the correct path to the icon (see JENKINS-24441)
*/
public String getIconUrl(String rootUrl) {
if (rootUrl.endsWith("/")) {
Expand Down
Expand Up @@ -40,6 +40,16 @@ public String getIconFileName() {
return ConfigFilesManagement.ICON_PATH;
}

/**
* used by configfiles.jelly to resolve the correct path to the icon (see JENKINS-24441)
*/
public String getIconUrl(String rootUrl) {
if (rootUrl.endsWith("/")) {
return rootUrl + ConfigFilesManagement.ICON_PATH.substring(1);
}
return rootUrl + ConfigFilesManagement.ICON_PATH;
}

@Override
public String getDisplayName() {
return "Config Files";
Expand Down

0 comments on commit a22f855

Please sign in to comment.