diff --git a/model/eMarket/Admin/Login.php b/model/eMarket/Admin/Login.php index 01951934a..bcf48c735 100644 --- a/model/eMarket/Admin/Login.php +++ b/model/eMarket/Admin/Login.php @@ -109,6 +109,9 @@ public function autorize() { if (isset($_SESSION['session_page'])) { $session_page = $_SESSION['session_page']; unset($_SESSION['session_page']); + if ($session_page == '/controller/admin/') { + $session_page = '?route=dashboard'; + } Messages::alert('autorize', 'success', lang('action_completed_successfully'), 0, true); header('Location: ' . $session_page); } else {