title: How to change the href of <a> tag in CodeIgniter pagination
body: <p>I need to change the href of <code>&lt;a&gt;</code> tag in CodeIgniter pagination.
  CodeIgniter's <code>$this-&gt;pagination-&gt;create_links();</code> function creates links like this:</p>
  
  <pre><code>&lt;a href="http://example.com/index.php/admin/view/3"&gt;3&lt;/a&gt;
  </code></pre>
  
  <p>But, I need the page number(3) at the end of all segments.
  Like this:</p>
  
  <pre><code>&lt;a href="http://example.com/index.php/admin/view/field/created/3"&gt;3&lt;/a&gt;
  &lt;a href="http://example.com/index.php/admin/view/field/created/order/asc/3"&gt;3&lt;/a&gt;
  </code></pre>
  
  <p>How can I do this?</p>