Skip to content

scrollTo links to a file on another page of a folder do nothing #4113

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 scrollTo link to a file that isn't on the first page of a folder does nothing. This hits e.g. closing a file you opened from a permanent link. GenericSpace.vue only passes the current page (paginatedResources) to scrollToResourceFromRoute, so the file isn't found and the switch to its page never happens. Favorites, search results and the trash bin do the same, while the share views already pass all sorted items.

Reproduction Steps

  1. Set 20 items per page and have a folder with 25 files
  2. Open the permanent link of the 25th file and close the app it opens in (or open the folder with ?scrollTo=<id of the 25th file>)

Expected Outcome

The folder switches to page 2, selects the file and scrolls to it, like it does for a file on page 1.

Actual Outcome

Page 1 stays open with nothing selected.

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