You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
i am using a pager library to make pagination to table in html but the pagination links not correct at all .
for example :
the expected link like this : http://example.com/posts?page=2
but i got this http://example.com/posts?page_1594893828=2
i don't know where this random number (1594893828) come from .
CodeIgniter 4 version
ci_version : 4.0.2
Affected module(s)
Pager
Solution
The solution that i make to fix this error is to go to System/Pager/Pager.php class
Line 500 and replace this : 'pageSelector' => $group === 'default' ? 'page' : 'page_' . $group,
with this : 'pageSelector' => 'page',
the random number come from $group variable and it's change every time
what i want to know is is that solution that i make is it's correct or not.
Thanks <3
The text was updated successfully, but these errors were encountered:
ixiDev
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jul 16, 2020
Hi.
i am using a pager library to make pagination to table in html but the pagination links not correct at all .
for example :
the expected link like this : http://example.com/posts?page=2
but i got this http://example.com/posts?page_1594893828=2
i don't know where this random number (1594893828) come from .
CodeIgniter 4 version
ci_version : 4.0.2
Affected module(s)
Pager
Solution
The solution that i make to fix this error is to go to System/Pager/Pager.php class
Line 500 and replace this :
'pageSelector' => $group === 'default' ? 'page' : 'page_' . $group,
with this :
'pageSelector' => 'page',
the random number come from $group variable and it's change every time
what i want to know is is that solution that i make is it's correct or not.
Thanks <3
The text was updated successfully, but these errors were encountered: