Skip to content

Commit e26bd8b

Browse files
committed
Resolve the root
1 parent 38550b2 commit e26bd8b

File tree

1 file changed

+8
-1
lines changed
  • core/src/main/resources/hudson/model/DirectoryBrowserSupport

1 file changed

+8
-1
lines changed

core/src/main/resources/hudson/model/DirectoryBrowserSupport/dir.jelly

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ THE SOFTWARE.
3434
<!-- parent path -->
3535
<div class="parentPath">
3636
<form>
37-
<a href="${topPath}">${it.owner.name}</a> /
37+
<j:choose>
38+
<j:when test="${request2.originalRequestURI.contains('/artifact/')}">
39+
<a href="${it.owner.url}artifact/">${%Root}</a> /
40+
</j:when>
41+
<j:otherwise>
42+
<a href="${topPath}">${it.owner.name}</a> /
43+
</j:otherwise>
44+
</j:choose>
3845
<j:forEach var="p" items="${parentPath}">
3946
<a href="${p.href}">${p.title}</a>
4047
/

0 commit comments

Comments
 (0)