EllisLab/CodeIgniter — Issue #677: Pagination bug when using "use_page_numbers" and "prefix" options
Author: RuGa
Created: 2011-11-18 14:55:34+00:00
State: open

Prefix: "page_"
Sample page: "example.com/news/page_2"
Route: "news/page_(:num)"

Error: cur_page sets the value to 0.
Fix: libraries/Pagination.php, line 159, replace "$this->cur_page = $CI->uri->segment($this->uri_segment);" with "$this->cur_page = str_replace($this->prefix, '', $CI->uri->segment($this->uri_segment));"