Browse Source

make client transition by using window.location.href

Yohei-Shiina 3 years ago
parent
commit
9657c6d90d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/components/LoginForm.tsx

+ 1 - 1
packages/app/src/components/LoginForm.tsx

@@ -170,7 +170,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
     try {
     try {
       const res = await apiv3Post(requestPath, { registerForm, _csrf: csrfToken });
       const res = await apiv3Post(requestPath, { registerForm, _csrf: csrfToken });
       const { redirectTo } = res.data;
       const { redirectTo } = res.data;
-      router.push(redirectTo);
+      window.location.href = redirectTo;
     }
     }
     catch (err) {
     catch (err) {
       // Execute if error exists
       // Execute if error exists