fix: redirect to /admin/clients after ending impersonation session

Closes #81

- Add window.location.href = '/admin/clients' after clearing session
  state in handleEnd so staff are sent back to the admin panel
- Add a test that verifies the redirect fires when End Session is clicked

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Scrubs McBarkley
2026-03-20 23:19:06 +00:00
parent 438a064ff5
commit 17a965552a
2 changed files with 32 additions and 0 deletions
+1
View File
@@ -73,6 +73,7 @@ export function CustomerPortal() {
}
setSession(null);
setSessionExtended(false);
window.location.href = "/admin/clients";
}, [session]);
const handleExtend = useCallback(async () => {