code: @RequirePOST
      @RequireAdminRights
      public HttpResponse doAct(StaplerRequest req) throws IOException {
          if (req.hasParameter("no")) {
              disable(true);
              return HttpResponses.redirectViaContextPath("/manage");
          } else {
              return new HttpRedirect(".");
          }
      }
docs: Depending on whether the user said "yes" or "no", send them to the right place.