未验证 提交 e05bb341 编写于 作者: T Tim Jacomb 提交者: Alexander Brandes

JENKINS-70169 Restore link to last breadcrumb (#7539)

(cherry picked from commit de352245)
上级 d71d17b6
......@@ -43,7 +43,7 @@ THE SOFTWARE.
</st:documentation>
<j:if test="${mode=='breadcrumbs'}">
<j:set var="hasLink" value="${!(attrs.href == null or h.hyperlinkMatchesCurrentPage(attrs.href))}" />
<j:set var="hasLink" value="${attrs.href != null}" />
<li id="${attrs.id}" class="jenkins-breadcrumbs__list-item" aria-current="${hasLink ? null : 'page'}">
<j:choose>
<j:when test="${!hasLink}">
......
......@@ -47,7 +47,7 @@ THE SOFTWARE.
<j:if test="${h.isModel(anc.object) and anc.prev.url!=anc.url}">
<j:set var="mode" value="breadcrumbs" />
<l:breadcrumb title="${anc.object == app ? '%Dashboard' : anc.object.displayName}"
href="${contents.length() == 0 and (index == request.ancestors.size() - 1) ? null : anc.url + '/'}"
href="${anc.url}/"
hasMenu="${h.isModelWithContextMenu(anc.object)}" />
<j:choose>
<j:when test="${h.isModelWithChildren(anc.object)}">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册