I’ve noticed the following behavior in CI’s pagination class:
My initial page (used as $config['base_url']):
http://www.example.com/forum
When I paginate to page 2 (per_page = 10, offset = 10, total_rows = 100):
http://www.example.com/forum/10
When I go back to Page 1:
http://www.example.com/forum/ <=====trailing slash
This trailing slash is messing up several Ajax commands in the page.
Any idea how to make it go away?
You can use trim for that: