[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:
kohsuke committed 2008-04-09 04:35:31 +00:00
1 parent d516ed5ef8
commit 1910deec90
1 file changed
+1 -1
+1 -1
View File
@@ -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);