Skip to content

Commit

Permalink
[JENKINS-72288] fix nested job link in mobile view (#8765)
Browse files Browse the repository at this point in the history
[JENKINS-72288] fix inested job link in mobile view

when a view contains jobs that are from a nested folder, the links where
not properly calculated.
  • Loading branch information
mawinter69 authored Dec 13, 2023
1 parent 7df7ae4 commit cc4e8e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/resources/lib/hudson/projectView.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ THE SOFTWARE.
<div class="jenkins-jobs-list jenkins-mobile-show">
<j:forEach var="job" items="${jobs}">
<j:set var="relativeLinkToJob" value="${h.getRelativeLinkTo(job)}"/>
<j:set var="jobBaseUrl" value="${relativeLinkToJob.substring(0, relativeLinkToJob.length() - job.shortUrl.length())}"/>
<div class="jenkins-jobs-list__item">
<a class="jenkins-jobs-list__item__details" href="${jobBaseUrl}${job.shortUrl}">
<div class="jenkins-jobs-list__item__icons">
Expand Down

0 comments on commit cc4e8e7

Please sign in to comment.