View with pager refreshes back to page one.

Created on 4 June 2024, 5 months ago
Updated 28 June 2024, 5 months ago

Problem/Motivation

I know it isn't a very common use case, but the auto-refresh on a view with a pager will cause the refresh to take the user back to page 1. I would prefer the option to stop auto refreshing when on any other page and only auto refresh on page 1. It should also honor the current page number when refreshing in any case.

Steps to reproduce

Just add auto refresh to a view.
add pager to the view
add enough items to require more than one page on the view
navigate to the view
jump to page 2
wait for auto refresh to return you to page 1.

Proposed resolution

Make auto refresh stay on current pager page.
Would love an option to 'only auto refresh when on page 1" or some option like that in the view header plugin.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DustinYoder

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DustinYoder
  • πŸ‡ΊπŸ‡ΈUnited States DustinYoder

    I am willing to work on this if someone can point me in the direction I would need to go to try to make the current page refresh. I'm not sure where to start looking for this. I'm guessing that might be more of a views bug or something. I am still on Drupal 8.9 and a fairly old version of the views module so this might just be a feature request to stop auto refresh on pages > 1.

  • πŸ‡«πŸ‡·France mably

    We have a solution to this problem already implemented, we should publish it shortly.

Production build 0.71.5 2024