I just implemented pagination in my website www.reviewongadgets.com
When I click the home page it's divided into two pages which is correct but when I click on next link it shows the URL as
http://www.reviewongadgets.com/home/10
which is also correct but when I come back to previous page number it displays URL as
http://www.reviewongadgets.com/home/home/
So can you please help resolve this problem? Below is the controller snippet where $url is http://www.reviewongadgets.com/home
$config['base_url'] = $url;
$config['total_rows'] = $this->MiscellaneousModel->countEntries();
$config['per_page'] = 10;
$base_url = site_url('/');
$config['uri_segment'] = '2';
//$config['page_query_string'] = TRUE;
$this->pagination->initialize($config);