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
{{ message }}
Repository navigation
🐛 Bug - Preserve paging and scroll position when navigating back to rule list #2725
Users navigating through the Rules V3 (TinaCMS) rule list experience inconsistent behavior when returning from an individual rule page. The current page selection and scroll position are sometimes lost, causing users to be returned to the first page or top of the list instead of their previous position. This issue occurs intermittently and negatively impacts browsing large rule categories such as "Rules to Better Use of AI".
Acceptance Criteria
When a user navigates to a rule from the rule list and then returns, the previously selected pagination page is preserved.
When a user navigates to a rule from the rule list and then returns, the previous scroll position in the list is preserved.
The paging and scroll restoration behavior works consistently across repeated navigation attempts.
The behavior works correctly when using browser back navigation.
The behavior works correctly when navigating via in-app links.
No regression is introduced to existing navigation or pagination functionality.
Reproduce Steps
Open the Rules V3 (TinaCMS) website.
Navigate to a category such as "Rules to Better Use of AI".
Go to page 2 of the rule list.
Open a rule from the list.
Navigate back to the rule list using the browser back button or in-app navigation.
Observe that the user is sometimes returned to page 1 instead of the previously selected page.
Scroll down within the rule list and open another rule.
Navigate back to the rule list.
Observe that the scroll position is sometimes reset to the top of the page instead of the previous position.
Screenshot
Figure: Pagination resets after returning to rule list
Activity
Store 'All' per page as perPage=all and expire unused scroll restores
Read the category list state with useSearchParams
Apply the saved list query when returning from a rule page
Drop the breadcrumb return to the same list page
🐛 Keep rule list page and scroll position when navigating back (#2732)