次の方法で、ページネーション リンクの接尾辞を定義できます。
$config['suffix'] = YOUR_SUFFIX
私の例を見てください:
URL : http://www.test_store.com/products/index/order/low_price
// Parsing the URI
$uri = $this->uri->uri_to_assoc(3);
$page = !empty($uri['page']) ? $uri['page'] : 1;
$order = !empty($uri['order']) ? $uri['order'] : false;
// Search paginated
$this->Product->limit = $per_page;
$this->Product->offset = ($page - 1) * $per_page;
$this->Product->order = $order;
$products = $this->Product->get_all();
// Pagination config
$config['base_url'] = site_url('products/index/page');
$config['total_rows'] = $this->Product->count_all();
$config['uri_segment'] = 4;
$config['num_links'] = 5;
$config['use_page_numbers'] = TRUE;
$config['per_page'] = $per_page;
// Add a suffix to pagination links
$config['suffix'] = !empty($uri['order']) ? '/order/'. $uri['order'] : '';
$this->pagination->initialize($config);
$pagination = $this->pagination->create_links();
PD: 私はアルゼンチン人で、英語力は少し劣っています