fix the redirection problem after deleting an event

fix the redirection problem after deleting an event.