mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 09:36:04 +00:00
Add support for more edge cases
This commit is contained in:
2 files changed
+8
-1
No files matched your search
@@ -2383,7 +2383,9 @@ public class Functions {
|
||||
iconGuess = "/" + iconGuess;
|
||||
}
|
||||
if (iconGuess.startsWith(rootURL)) {
|
||||
iconGuess = iconGuess.substring(rootURL.length());
|
||||
if ((!rootURL.equals("/images") && !rootURL.equals("/plugin")) || iconGuess.startsWith(rootURL + rootURL)) {
|
||||
iconGuess = iconGuess.substring(rootURL.length());
|
||||
}
|
||||
}
|
||||
iconSource = rootURL + (iconGuess.startsWith("/images/") || iconGuess.startsWith("/plugin/") ? getResourcePath() : "") + iconGuess;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user