When we have the pager like this:

The current page is incorrectly identified:
https://git.drupalcode.org/project/ui_suite_bootstrap/-/blob/5.0.x/src/H...
The $variables['items']['pages'] array is like this:
[
2 => ...
3 => ...
4 => ...
]
And the normalize function returns like this:
[
0 => ...
1 => ...
2 => ...
]
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot.png | 13.78 KB | rpayanm |
Issue fork ui_suite_bootstrap-3471652
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rpayanmI try to fix this with this patch.
Or we can keep the keys in the $page variable.
Comment #4
rpayanmComment #5
grimreaperComment #6
grimreaperOk, so the problem happens on a full pager, when the "Number of pager links visible" is less than the number of pages.
Comment #8
grimreaperComment #9
grimreaper