How to redirect from plugin? My plugin init function:

function init(){

    craft()-&gt;entries-&gt;onSaveEntry = function(Event $event) {

        //redirect to wanted url

    };

}


Is there a fancy way to redirect to my plugin url if, for example the entry channel is jobs.

Or I have to use header() function. Thank you in advance.
You can use the HttpRequestService:

craft()-&gt;request-&gt;redirect($myAwesomeUrl);