From 3062e73d22e5e984d5ca17c7cc24c8b040ee2387 Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Wed, 20 May 2015 23:18:27 +0200 Subject: [PATCH] Fixed URLs with index.php value (work without mod_rewrite) --- src/application/controllers/test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application/controllers/test.php b/src/application/controllers/test.php index db827ee9..aa3159a5 100644 --- a/src/application/controllers/test.php +++ b/src/application/controllers/test.php @@ -18,9 +18,9 @@ class Test extends CI_Controller { public function index() { // User must be logged in as an admin in order to run the tests. $this->load->library('session'); - $this->session->set_userdata('dest_url', $this->config->item('base_url') . '/test'); + $this->session->set_userdata('dest_url', $this->config->item('base_url') . '/index.php/test'); if ($this->session->userdata('role_slug') != DB_SLUG_ADMIN) { - header('Location: ' . $this->config->item('base_url') . '/user/login'); + header('Location: ' . $this->config->item('base_url') . '/index.php/user/login'); return; }