Skip to content

Unticking a file navigates to another folder when the folder name contains # #4143

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

Unticking a file after closing it in an app navigates to another folder when the current folder name contains #. resetScrollToParam in useResourcesViewDefaults.ts pushes the spread current route with decoded params, so everything after # gets lost.

Reproduction Steps

  1. Have sibling folders Doc and Doc#A, with right.txt in Doc#A
  2. Open Doc#A, open right.txt in the text editor and close it again (the file is selected, the URL has scrollTo)
  3. Untick right.txt

Expected Outcome

The selection is cleared and the view stays in Doc#A.

Actual Outcome

The view switches to Doc without any notice, and a new history entry is added.

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