[JENKINS-72288] fix nested job link in mobile view (#8765)

[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.
This commit is contained in:
Markus Winter authored and GitHub committed 2023-12-13 21:00:50 +01:00
1 parent 7df7ae4a85
commit cc4e8e72e0
1 file changed
+1
@@ -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">