Skip to content
Permalink
Browse files

[JENKINS-37369] Use HttpResponses.redirectViaContextPath

  • Loading branch information
stephenc committed Mar 10, 2017
1 parent 5f49c85 commit 695f4b651427dc683a6c08c96e8a750904c56d03
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/com/cloudbees/hudson/plugins/folder/computed/PseudoRun.java
@@ -108,15 +108,15 @@ public Object getStaplerFallback() {
}

public HttpResponse doIndex(StaplerRequest request) {
return HttpResponses.redirectTo(Jenkins.getActiveInstance().getRootUrlFromRequest() + computation.getUrl() );
return HttpResponses.redirectViaContextPath(computation.getUrl());
}

public HttpResponse doConsole(StaplerRequest request) {
return HttpResponses.redirectTo(Jenkins.getActiveInstance().getRootUrlFromRequest() + computation.getUrl() + "console");
return HttpResponses.redirectViaContextPath(computation.getUrl() + "console");
}

public HttpResponse doConsoleText(StaplerRequest request) {
return HttpResponses.redirectTo(Jenkins.getActiveInstance().getRootUrlFromRequest() + computation.getUrl() + "consoleText");
return HttpResponses.redirectViaContextPath(computation.getUrl() + "consoleText");
}

@Restricted(NoExternalUse.class)

0 comments on commit 695f4b6

Please sign in to comment.
You can’t perform that action at this time.