mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
[fixed] broken link when context path is not '/' (issue #1526)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8405 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
d516ed5ef8
commit
1910deec90
1 file changed
+1
-1
@@ -690,7 +690,7 @@ public class Functions {
|
||||
if(it instanceof Descriptor)
|
||||
clazz = ((Descriptor)it).clazz;
|
||||
|
||||
StringBuilder buf = new StringBuilder();
|
||||
StringBuilder buf = new StringBuilder(Stapler.getCurrentRequest().getContextPath());
|
||||
buf.append(Hudson.VIEW_RESOURCE_PATH).append('/');
|
||||
buf.append(clazz.getName().replace('.','/').replace('$','/'));
|
||||
buf.append('/').append(path);
|
||||
|
||||
Reference in new issue
Block a user