protected function redirectAfterAction() { if (!($return_url = @$_GET['returnUrl'])) { if (!($return_url = @$_POST['returnUrl'])) { $return_url = $this->getEventViewUrl(); } } $this->redirect($return_url); }