diff --git a/src/components/RightContent/AvatarDropdown.tsx b/src/components/RightContent/AvatarDropdown.tsx index d9e6731172b83b7c59bdd5ba40c78a559fdcff0f..fc768c29ffe63f0b1971dd043e840364794db8af 100644 --- a/src/components/RightContent/AvatarDropdown.tsx +++ b/src/components/RightContent/AvatarDropdown.tsx @@ -17,14 +17,14 @@ export type GlobalHeaderRightProps = { */ const loginOut = async () => { await outLogin(); - const { query = {}, pathname } = history.location; + const { query = {}, search, pathname } = history.location; const { redirect } = query; // Note: There may be security issues, please note if (window.location.pathname !== '/user/login' && !redirect) { history.replace({ pathname: '/user/login', search: stringify({ - redirect: pathname, + redirect: pathname + search, }), }); }