I have a problem with the pagination on one of my pages. I access the page with the url http://page.com/pro/attempts/2?page=3 , in the controller action I configured the pagination as follows:
$config = array(
'total_items' => $attempts->count(),
'per_page' => 25,
'uri_segment' => 'page',
);
The problem is that when the page is shown the table of data shows the second page and the pager at the bottom also shows that I am on the second page and not the third as specified in the URL.
Yes, there is data..it does not mater what page I request it always jumps to the second page.
Another example is: http://page.com/pro/attempts/9?page=3 here there is enough data for 5 pages and when I request this URL the pager jumps to the last (5-th) page instead of showing the third page.
It is ignoring the GET parameter and using the ID for the pager.