diff --git a/controllers/IndexController.php b/controllers/IndexController.php index 9e4a596..4485832 100644 --- a/controllers/IndexController.php +++ b/controllers/IndexController.php @@ -99,8 +99,9 @@ class IndexController extends Controller static function actionLogout() { + $referrer = (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'wikipoints.ru') !== FALSE) ? $_SERVER['HTTP_REFERER'] : '/'; App::userLogout(); - App::redirect('/'); + App::redirect($referrer); } static function actionLogin()