Skip to content

[ticket/17664] Align pagination start values with page boundaries#6998

Open
ECYaz wants to merge 1 commit into
phpbb:3.3.xfrom
ECYaz:ticket/17664
Open

[ticket/17664] Align pagination start values with page boundaries#6998
ECYaz wants to merge 1 commit into
phpbb:3.3.xfrom
ECYaz:ticket/17664

Conversation

@ECYaz

@ECYaz ECYaz commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Checklist:

  • Correct branch: 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17664

A start value taken from the URL that does not sit on a page boundary highlights the page the value falls into while the item list is offset by the raw value, so the displayed items match no page of the pagination. Validated start values now snap to the beginning of their page and the list always shows the page the pagination marks as active. Out of range values keep their current behaviour of landing on the first or last page, covered by the existing tests, and new test cases cover the alignment. Verified on a live board that an off boundary start renders the same items as the boundary value and that the jump to post links in viewtopic are unaffected, as they already compute aligned values.

A start value taken from the URL that does not sit on a page boundary
highlights the page the value falls into while the item list is
offset by the raw value, so the displayed items match no page of the
pagination. Snap validated start values to the beginning of their
page so the list always shows the page the pagination marks as
active. Out of range values keep their current behaviour of landing
on the first or last page.

PHPBB-17664
@github-actions

Copy link
Copy Markdown

The attempt to merge branch 3.3.x into master has completed after considering the changes in this PR.

  • Merge result: Conflict ❌

A separate PR will be needed to merge 3.3.x into master.

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