提交 1910deec 编写于 作者: K kohsuke

[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
上级 d516ed5e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册