I\'m banging my head on the keyboard trying to figure out a way to use query string with pagination every thing works fine until FIRST
page link appears.
I can't believe this, I spent hours searching the web for a solution !
It was always with me.I should have opened the pagination library and viewed its content before I posted this question.Just one line and problem solved.
I added the following line in the index method.
$config['first_url'] = '/index.php/search/index/?q='.$q;