Skip to content
Permalink
Browse files
Merge pull request #18 from yoichi/JENKINS-20616
[FIXES JENKINS-20616] replace target only if default view is set
  • Loading branch information
ctapobep committed Nov 23, 2013
2 parents 607f54c + 78d0831 commit 1be963830d9f7e6dbf3c2a961a68b8a0f1d2402a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/hudson/plugins/nested_view/NestedView.java
@@ -445,7 +445,8 @@ public List<HealthReport> getBuildHealthReports() {

public Object getTarget() {
// Proxy to handle redirect when a default subview is configured
return "".equals(Stapler.getCurrentRequest().getRestOfPath())
return (getDefaultView() != null &&
"".equals(Stapler.getCurrentRequest().getRestOfPath()))
? new DefaultViewProxy() : this;
}

0 comments on commit 1be9638

Please sign in to comment.