nextcloud / nextcloud/viewer

[Bug]: next/previous broken when viewing media files from a tag

Open
#3,135 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

⚠️ This issue respects the following points: ⚠️
Bug description

Hi all!

On the web interface, In the files app, in the tags tab, when viewing media by a particular tag, pressing the "next" button on the right of the screen doesn't show the next tagged file in the list, but the next file from whatever folder the tagged file happens to be from.

Steps to reproduce
  1. create folder A with three different pictures, let's call them A1, A2, and A3
  2. create folder B with three other pictures, let's call them B1, B2, and B3
  3. create folder C with three other pictures, let's call them C1, C2, and C3
  4. tag A2, B2, and C2 all with the same tag, let's call it T
  5. go to the tags tab and select tag T
  6. click on image B2 to view it
  7. "next" and "previous" buttons (or the arrow keys) will now lead you to B3 and B1 respectively
Expected behavior

The next and previous buttons should lead to C2 and A2, respectively.

Nextcloud Server version

30

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the media viewer's next/previous navigation used from the Files app Tags tab, and reproduce the issue with tagged files spread across folders. Trace how the viewer chooses adjacent files; done means the buttons and arrow keys follow the tag result order rather than neighboring files in the current folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.