Skip to content

Commit

Permalink
Merge pull request #18 from yoichi/JENKINS-20616
Browse files Browse the repository at this point in the history
[FIXES JENKINS-20616] replace target only if default view is set
  • Loading branch information
ctapobep committed Nov 23, 2013
2 parents 607f54c + 78d0831 commit 1be9638
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/nested_view/NestedView.java
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1be9638

Please sign in to comment.