We will learn how to How to get current url with query string in codeigniter?


$this->load->helper('url');


$currentURL = current_url();
$params   = $_SERVER['QUERY_STRING'];


$fullURL = $currentURL . '?' . $params;
print_r($fullURL);

May this will help you.