Просмотр исходного кода

make client transition by using window.location.href

Yohei-Shiina 3 лет назад
Родитель
Сommit
9657c6d90d
1 измененных файлов с 1 добавлено и 1 удалено
  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