Skip to content

fix: follow the search term in the admin users route query - #3753

Merged
AlexAndBear merged 3 commits into
mainfrom
fix/admin-users-search-back
Oct 16, 2026
Merged

AlexAndBear merged 3 commits into
mainfrom
fix/admin-users-search-back

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Admin Users search: browser Back and Forward now update the search input and the user list when the search term in the URL changes.
  • Selection: a Back/Forward search change resets the selection, so a user who drops out of the list isn't acted on.

A search on a page without page in the URL still creates two history entries (search push plus page push), so the first Back only removes page. This is fixed by #3699, which resets the page with router.replace.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: removing the search term from the route clears it and reloads the users
  • test case 2: a route-driven search change resets the selection
  • test case 3: browser: search, Back, Forward; one load per step; selection reset

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 0eb8975 into main Oct 16, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/admin-users-search-back branch October 16, 2026 12:21
@openclouders openclouders mentioned this pull request Oct 16, 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.

The user search term in admin Users doesn't follow browser Back

2 participants