mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-31 13:35:19 +00:00
JENKINS-68639
Check whether an icon path already contains the context path before appending the context path to it
This commit is contained in:
1 parent
a153bb61eb
commit
ee76f917e8
1 file changed
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user