PHP Version
7.4
CodeIgniter4 Version
4.1.9
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MySQL 5.6
What happened?
Codeginiter pagination returns wrong page numbers.
I opened C:\xampp\htdocs\zedge.ge\vendor\codeigniter4\framework\system\Pager\PagerRenderer.php in my editor and "OMG"
I can't believe that some one made that mistakes. Maybe the developer was high when he/she was writing the code.




Steps to Reproduce
Look at this
<ul class="pagination" aria-label="Page navigation">
<li class="page-item">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=1" aria-label="First">First</a>
</li>
<li class="page-item">
<!--it should return 2-->
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=4" aria-label="Previous">Previous</a>
</li>
<li class="page-item ">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=3">3</a>
</li>
<li class="page-item ">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=4">4</a>
</li>
<li class="page-item active">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=5">5</a>
</li>
</ul>
Expected Output
<ul class="pagination" aria-label="Page navigation">
<li class="page-item">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=1" aria-label="First">First</a>
</li>
<li class="page-item">
<!--it should not return 4-->
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=2" aria-label="Previous">Previous</a>
</li>
<li class="page-item ">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=3">3</a>
</li>
<li class="page-item ">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=4">4</a>
</li>
<li class="page-item active">
<a class="page-link" href="http://zedge.ge/admin/knowledge_base?page=5">5</a>
</li>
</ul>
Anything else?
No response
PHP Version
7.4
CodeIgniter4 Version
4.1.9
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter)Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MySQL 5.6
What happened?
Codeginiter pagination returns wrong page numbers.
I opened C:\xampp\htdocs\zedge.ge\vendor\codeigniter4\framework\system\Pager\PagerRenderer.php in my editor and "OMG"
I can't believe that some one made that mistakes. Maybe the developer was high when he/she was writing the code.
Steps to Reproduce
Look at this
Expected Output
Anything else?
No response