From 65d324398627ada590afdca921bbb380fb78a660 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 15 Aug 2020 15:54:42 +0300 Subject: [PATCH] Add the appointment has in the stored "dest_url" value when trying to access the calendar page without being logged in first (#804). --- application/controllers/Backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Backend.php b/application/controllers/Backend.php index f6c4e589..ed314b26 100755 --- a/application/controllers/Backend.php +++ b/application/controllers/Backend.php @@ -73,7 +73,7 @@ class Backend extends CI_Controller { */ public function index($appointment_hash = '') { - $this->session->set_userdata('dest_url', site_url('backend')); + $this->session->set_userdata('dest_url', site_url('backend/index' . (!empty($appointment_hash) ? '/' . $appointment_hash : ''))); if ( ! $this->has_privileges(PRIV_APPOINTMENTS)) {