From 3389ab292ddec351f489b12d791792f81feb761c Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 23 Jun 2023 18:00:37 +0000 Subject: [PATCH] Login: Honor login destination setting (if any). --- login.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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