Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/account/src/utils/account-center-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ export const handleAccountCenterRoute = () => {
// Restore the stored route if the current path is the base path.
if (window.location.pathname === accountCenterBasePath) {
const storedRoute = parseStoredRoute(sessionStorage.getItem(routeStorageKey) ?? undefined);
// Always clear the stored route to ensure one-time restoration
sessionStorage.removeItem(routeStorageKey);

if (!storedRoute) {
sessionStorage.removeItem(routeStorageKey);
return;
}

Expand Down
Loading