If maker checker is enabled, instead of returning actual response redirecting it to viewMakerCheckerTask.html which will conveys the user that the task has been sent for checker approval. The success function of actual request expects a response data from server. But here i am redirecting to a different page. The scope of the success function gets exited when we jump to another controller. Thus the response data required is getting undefined. Any help in this will be appreciated