We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f511073 commit 4aaec74Copy full SHA for 4aaec74
src/main/java/org/jenkinsci/plugins/workflow/cps/SnippetizerLink.java
@@ -35,6 +35,7 @@
35
36
import java.net.URI;
37
import java.net.URISyntaxException;
38
+import java.nio.file.Paths;
39
import java.util.logging.Level;
40
import java.util.logging.Logger;
41
@@ -80,7 +81,7 @@ public final String getDisplayUrl() {
80
81
82
Item i = req.findAncestorObject(Item.class);
83
- return req.getContextPath() + '/' + (i == null ? "" : i.getUrl()) + u;
84
+ return Paths.get( req.getContextPath(), i == null ? "" : i.getUrl(), u).toString();
85
}
86
87
/**
0 commit comments