CodeIgniter Forums
Bad Pagination Links with query_string turned on - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Bad Pagination Links with query_string turned on (/showthread.php?tid=11643)



Bad Pagination Links with query_string turned on - El Forum - 09-17-2008

[eluser]jrlooney[/eluser]
So, I am needing to run with query_strings turned on. When I do that, and go to my application using this url:
http://domain.com/aw_php/ci/contact_manager.php?c=contact

the pagination class is outputting:

http://domain.com/aw_php/ci/contact_manager.php/contact/page&per_page=8

which is incorrect. It should be something like:

http://domain.com/aw_php/ci/contact_manager.php?c=contact&m=page&per_page=8

Anyone else know a fix?


Bad Pagination Links with query_string turned on - El Forum - 09-17-2008

[eluser]Pascal Kriete[/eluser]
It should work automatically, but you can try to explicitly set it:
Code:
$config['page_query_string'] = TRUE;



Bad Pagination Links with query_string turned on - El Forum - 09-17-2008

[eluser]jrlooney[/eluser]
Thanks for the reply. I did that too - still the links are segmented urls (v.1.6.3)