From 85fefe9f0a5fbe9dc7d4d0a9742ef0af84c6a2d1 Mon Sep 17 00:00:00 2001 From: musicman3 Date: Tue, 3 Aug 2021 20:48:40 +0300 Subject: [PATCH] fix --- model/eMarket/Admin/Login.php | 3 +++ 1 file changed, 3 insertions(+) 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 {