Skip to content

Pagination resets to 1 when regain focus of browser tab #13251

Description

@leo9800

Before you start please confirm the following.

  • Yes, I've searched similar issues on GitHub.
  • Yes, I've checked whether this issue is covered in the Portainer documentation.

Problem Description

when an paginator is shown with >= 2 pages on either pages (containers, stacks, images, etc) of portainer and current page is >= 2, click somewhere outside the browser window or switch to another tab, then switch back to the portainer tab, the paginator automatically resets to page 1.

Expected Behavior

the paginator should maintain the current page that user is viewing than reset to page 1.

Actual Behavior

the paginator resets to page 1 no matter which page it previously was

Steps to Reproduce

  1. setup portainer
  2. add an environment, named foobar
  3. create 11 containers on foobar
  4. open portainer -> foobar -> containers
  5. set items per page to 10 and switch to page 2
  6. open a new browser tab, then switch back to portainer tab
  7. portainers resets to page 1

Portainer logs or screenshots

No response

Portainer version

2.39.5

Portainer Edition

Business Edition (BE/EE) with 5NF / 3NF license

Platform and Version

Docker 29.6.2

OS and Architecture

Arch Linux, x86-64

Browser

Google Chrome, Mozilla Firefox

What command did you use to deploy Portainer?

services:
  portainer:
    container_name: portainer
    image: portainer/portainer-ee:alpine
    restart: unless-stopped
    ports:
      - 127.0.0.1:18900:9000
    environment:
      - VIRTUAL_HOST=portainer.redacted.test
      - VIRTUAL_PORT=443
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./data:/data

Additional Information

i noticed that #13027 seems reporting the same issue with a patch #13221 attached, but the issue still presence, not sure if the patch is not merged yet or it does not address the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions