JENKINS-68639

Check whether an icon path already contains the context path before appending the context path to it
This commit is contained in:
Riliane committed 2022-05-31 12:12:05 +03:00
1 parent a153bb61eb
commit ee76f917e8
1 file changed
+3 -1
+3 -1
View File
@@ -2377,7 +2377,9 @@ public class Functions {
if (!iconGuess.startsWith("/")) {
iconGuess = "/" + iconGuess;
}
iconSource = rootURL + (iconGuess.startsWith("/images/") || iconGuess.startsWith("/plugin/") ? getResourcePath() : "") + iconGuess;
iconSource = iconGuess.startsWith(rootURL) ? "" : rootURL;
iconSource += (iconGuess.startsWith("/images/") || iconGuess.startsWith("/plugin/") ? getResourcePath() :
"") + iconGuess;
}
if (iconMetadata != null && iconMetadata.getClassSpec() != null) {