Skip to content

Commit

Permalink
JENKINS-70169 Restore link to last breadcrumb (jenkinsci#7539)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 22, 2022
1 parent e7b46e9 commit de35224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/layout/breadcrumb.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -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}">
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/layout/breadcrumbBar.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -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)}">
Expand Down

0 comments on commit de35224

Please sign in to comment.