Skip to content

Functional Test Setup and Bugfix for pagination first last link - #54

Merged
tobiasgruber merged 3 commits into
Flowpack:3.6from
tobiasgruber:bugfix/pagination-first-last-link
Nov 17, 2026
Merged

tobiasgruber merged 3 commits into
Flowpack:3.6from
tobiasgruber:bugfix/pagination-first-last-link

Conversation

@tobiasgruber

Copy link
Copy Markdown
Contributor

🧱 TASK: Add functional test setup and GitHub CI

🐛 BUGFIX: Always link first and last page in pagination
The first page was only prepended if the displayed range started after page 2, the last page only appended if it ended before the second to last page. With maximumNumberOfLinks = 5, page 3 rendered '2 3 4 ... 10' without a link to page 1, page 8 rendered '1 ... 7 8 9' without page 10.

Now the first/last page is added whenever it is outside the displayed range, and the '...' separator only if there is an actual gap.

@tobiasgruber
tobiasgruber changed the base branch from main to 3.6 November 17, 2026 14:03
The first page was only prepended if the displayed range started after page 2, the last page only appended if it ended before the second to last page. With maximumNumberOfLinks = 5, page 3 rendered '2 3 4 ... 10' without a link to page 1, page 8 rendered '1 ... 7 8 9' without page 10.

Now the first/last page is added whenever it is outside the displayed range, and the '...' separator only if there is an actual gap.
@tobiasgruber
tobiasgruber force-pushed the bugfix/pagination-first-last-link branch from 9258fe1 to 5d5c0f1 Compare November 17, 2026 14:23
@tobiasgruber

Copy link
Copy Markdown
Contributor Author

@skurfuerst reviewed this locally on my machine

@tobiasgruber
tobiasgruber merged commit 47c986b into Flowpack:3.6 Nov 17, 2026
@tobiasgruber
tobiasgruber deleted the bugfix/pagination-first-last-link branch November 17, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant