Can anyone tell me why my redirect helper does not work the way I\'d expect it to? I\'m trying to redirect to the index method of my main controller, but it takes me w
w
If you want to redirect previous location or last request then you have to include user_agent library:
user_agent
$this->load->library('user_agent');
and then use at last in a function that you are using:
redirect($this->agent->referrer());
its working for me.