Skip to content

Preview from a filtered list steps through files the filter hides #4235

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A preview opened from filtered search results or a filtered Favorites list counts and steps through files the filter hides. useAppFolderHandling.ts reruns the search with only the term (there's a TODO for the filters), and the favorites loader reads the filters from the current route, which is the preview route, not the list.

Reproduction Steps

  1. Put zq-one.png, zq-two.jpg, zq-four.png and zq-three.mp3 in your personal space
  2. Open /files/search/list?term=zq&q_mediaType=image (3 images listed)
  3. Open an image in the preview and press Next a few times

Expected Outcome

The preview only goes through the 3 listed images ("1 of 3").

Actual Outcome

It says "1 of 4" and Next shows zq-three.mp3. Same for Favorites with a media type filter.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions