rem: cocoon.sendPage("redirect.html", { "url" : redirectUri }); 
add: cocoon.redirectTo(redirectUri); 
context: function userDeleteUser() {	resolve();    var redirectUri = getRequestUri();		var userId = cocoon.request.get("user-id");	var user;		try {		var userManager = getAccreditableManager().getUserManager();		user = userManager.getUser(userId);				var name = user.getName();		var ready = false;					while (!ready) {			cocoon.sendPageAndWait("users/confirm-delete-common.xml", {				"id" : userId,				"name" : name,				"type" : "user"			});							if (cocoon.request.get("submit")) {				try {					var userManager = getAccreditableManager().getUserManager();					userManager.remove(user);				}			   	finally {	   				release();			   	}				user['delete']();				ready = true;			}			else {				ready = true;			}		}   	}   	finally {   		release();   	}	   	cocoon.sendPage("redirect.html", { "url" : redirectUri });}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5b9c6ae2fb641effa76e35efe68abb2bee660da7/user-admin.js/buggy/src/webapp/lenya/content/admin/users/user-admin.js