public function actionRedirect($hash) { assert('is_string($hash)'); try { $url = ShortUrl::getUrlByHash($hash); $this->redirect($url); } catch (NotFoundException $exception) { throw new CHttpException(404, Zurmo::t('ZurmoModule', 'The specified hash cannot be found.')); } }