Jelajahi Sumber

make client transition by using window.location.href

Yohei-Shiina 3 tahun lalu
induk
melakukan
9657c6d90d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 {
       const res = await apiv3Post(requestPath, { registerForm, _csrf: csrfToken });
       const { redirectTo } = res.data;
-      router.push(redirectTo);
+      window.location.href = redirectTo;
     }
     catch (err) {
       // Execute if error exists