From 12e4eebd1fddb670881671cedbb2fba2b2607eb6 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 14 Dec 2021 08:06:10 +0100 Subject: [PATCH] Set the "dest_url" js config --- application/controllers/Login.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/controllers/Login.php b/application/controllers/Login.php index 14a70008..9a92061d 100644 --- a/application/controllers/Login.php +++ b/application/controllers/Login.php @@ -28,6 +28,10 @@ class Login extends EA_Controller { $this->load->library('accounts'); $this->load->library('email_messages'); + + js_config([ + 'dest_url' => session('dest_url', site_url('backend')), + ]); } /**