From ad16e8ff484b1942ff905b6b87fe174740917afb Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 5 Jun 2016 19:13:54 +0200 Subject: Fix redirect on login after registering new account Previously the login box in the navigation would redirect to the current page, but this page will throw an error in the case of the registration page since that's the page with the invition key and that key is no longer valid. Fix this by redirecting to the $redirect_uri and ensure that this value is set for all requests. Signed-off-by: Florian Pritz --- application/core/MY_Controller.php | 1 + 1 file changed, 1 insertion(+) (limited to 'application/core') diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php index 5181c2904..79d258c37 100644 --- a/application/core/MY_Controller.php +++ b/application/core/MY_Controller.php @@ -103,5 +103,6 @@ class MY_Controller extends CI_Controller { $this->load->model("muser"); $this->data["user_logged_in"] = $this->muser->logged_in(); + $this->data['redirect_uri'] = $this->uri->uri_string(); } } -- cgit v1.2.3-24-g4f1b