提交 529e3fb2 编写于 作者: K kohsuke

additional navigation bug fixes.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1688 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c4e0a8df
......@@ -138,10 +138,7 @@ public class Functions {
if(n ==null)
return null;
else {
String url = contextPath + '/' + n.getUrl();
assert url.endsWith("/");
url = url.substring(0,url.length()-1); // cut off the trailing '/'
return url+rest;
return basePortion+"/../"+n.getNumber()+rest;
}
}
}
......
......@@ -6,7 +6,7 @@
<l:side-panel>
<l:tasks>
<j:set var="buildUrl" value="${h.decompose(request)}" />
<l:task icon="images/24x24/up.gif" href="${rootURL}/${it.parent.url}" title="Back to Project" />
<l:task icon="images/24x24/up.gif" href="${h.getNearestAncestorUrl(request,it.parent)}/" title="Back to Project" />
<l:task icon="images/24x24/search.gif" href="${buildUrl.baseUrl}/" title="Status" />
<l:task icon="images/24x24/notepad.gif" href="${buildUrl.baseUrl}/changes" title="Changes" />
<j:choose>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册