Skip to content

Conversation

@wangsijie
Copy link
Contributor

Summary

  • Fix an issue where users were unexpectedly redirected to a previously cached route when manually navigating to the account center homepage
  • The stored route in sessionStorage is now cleared immediately after reading, ensuring one-time restoration

Test plan

  • Navigate to /account/email in account center
  • Leave the page (but keep the browser tab open)
  • Manually navigate back to /account homepage
  • Verify that you stay on the homepage instead of being redirected to /account/email

…ed redirects

Previously, the stored route in sessionStorage was only cleared when invalid.
This caused users to be unexpectedly redirected to a previously cached route
when manually navigating to the account center homepage.
@github-actions github-actions bot added the bugfix label Jan 2, 2026
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

COMPARE TO master

Total Size Diff 📈 +67 Bytes

Diff by File
Name Diff
packages/account/src/utils/account-center-route.ts 📈 +67 Bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants