title: Codeigniter Pagination - first page always remain as the current page
body: <p>I am having issue with with just the link of my codeigniter page</p>
  <p>I have tired</p>
  <pre><code>$config=array();
  $config['base_url']=base_url().'search-products?q='.$check_result;
  //$check_result holds the search content of the user
  
  $config['per_page']=5;
  $config['use_page_numbers']=TRUE;
  $config['query_string_segment']='p' ;
  $config['page_query_string']=TRUE;
  $config['total_rows]=$this-&gt;Views_Model-&gt;fetchSearchAdsTotal();
  $this-pagination-&gt;initialize($config);
  $data['page_links']=$this-&gt;pagination-&gt;create_link();
  </code></pre>
  <p>All the different pages fetches well but the main issue is the link structure</p>
  <p>Given all the above code, if for instance, I am on page 8, it will still be showing 1 as the active</p>
  <p>E.g <strong>1</strong> 2 3 Next Last</p>
  <p>Even if am on page 10, it will still remain in the above format and first page will be the current active page</p>
  <p>Also my url is something like this: localhost/Folder/search-items?q=SearchText&amp;p=3</p>
  <p>In my config.php</p>
  <pre><code>$config['enable_query_string']=TRUE;
  $config['allow_get_array'] =TRUE
  </code></pre>
  <p>I don't know if the issue is due to the absence of the $config['uri_segment'] in the pagination configuration</p>