diff --git a/login.php b/login.php index 7e8c654017..41b59adb47 100644 --- a/login.php +++ b/login.php @@ -30,6 +30,11 @@ require_once "resources/check_auth.php"; //redirect - header("Location: ".PROJECT_PATH."/core/dashboard/"); + if (isset($_SESSION['login']['destination']['text'])) { + header("Location: ".$_SESSION['login']['destination']['text']); + } + else { + header("Location: ".PROJECT_PATH."/core/dashboard/"); + } ?> \ No newline at end of file