Skip to content

fix: stay in folders with a # in their name when the scrollTo param is reset - #4165

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/scrollto-reset-hash-folder
Nov 4, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/scrollto-reset-hash-folder

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Unticking a file after closing it in an app no longer jumps to a sibling folder when the folder name contains a #, and it doesn't add a history entry anymore. The same fix applies to switching to the page of a scrollTo target, so files on page 2 of such a folder are found and selected again.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: resetting scrollTo and the page switch keep an encoded # in the path (real router)
  • test case 2: browser: public link and personal space with Doc / Doc#A on desktop and Pixel 7, scrollTo target on page 2, other query params and Back behaviour in a normal folder (share views blocked by the test backend)

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit f4a8ab4 into main Nov 4, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/scrollto-reset-hash-folder branch November 4, 2026 09:53
@openclouders openclouders mentioned this pull request Nov 4, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants