I think that there is a bug in the codeigniter pagination library. For some reason when I generate the pagination links, it generates the links as:
1 2 3 4
Where page 3
is linking to 4
.
Here is the config variables code in case anyone is curious:
$config['base_url'] = base_url() . "index.php/test/$query_string";
$config['total_rows'] = $search_results->num_rows();
$config['per_page'] = $items_per_page;
And here is a sample of my query string:
?q=sample_query_string&per_page=1
Is there a way to fix this?
See Question&Answers more detail:os