On one of my pages, I am checking if the user has permissions:
// Validate our user
if ($this->global_model->get_permission() != 'Admin')
{
redirect('/permissions/index/'.current_url());
}
On the permissions controller, I am logging where they came from:
$this->global_model->log_data('permission','Invalid Permissions | Referer : ' . $this->uri->segment(3));
Due to the URL having / in it, its giving me http: as URI3.
How can I pass this in the URL but get the whole value?