Add the appointment has in the stored "dest_url" value when trying to access the calendar page without being logged in first (#804).

This commit is contained in:
Alex Tselegidis 2020-08-15 15:54:42 +03:00
parent f122d1ea20
commit 65d3243986

View file

@ -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))
{