Skip to content

Commit

Permalink
Merge pull request #133 from jenkinsci/broken-job-link
Browse files Browse the repository at this point in the history
Fix broken side panel link on the job level
  • Loading branch information
uhafner committed Nov 3, 2021
2 parents 7c3207a + e40ab76 commit 7d8a01e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/jenkins/plugins/util/JobAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public void doIndex(final StaplerRequest request, final StaplerResponse response
Optional<T> action = getLatestAction();
if (action.isPresent()) {
T buildAction = action.get();
response.sendRedirect2(String.format("../../../%s%s",
buildAction.getOwner().getUrl(), buildAction.getUrlName()));
response.sendRedirect2(String.format("../%d/%s",
buildAction.getOwner().getNumber(),
buildAction.getUrlName()));
}
}

Expand Down

0 comments on commit 7d8a01e

Please sign in to comment.