diff --git a/src/components/organisms/RegisterForm/RegisterForm.tsx b/src/components/organisms/RegisterForm/RegisterForm.tsx index 24b0ff3a..7a32d461 100644 --- a/src/components/organisms/RegisterForm/RegisterForm.tsx +++ b/src/components/organisms/RegisterForm/RegisterForm.tsx @@ -228,7 +228,7 @@ export const RegisterForm: React.FC = ({ onSubmit={(values, { setSubmitting, resetForm, setErrors }) => { register({ ...values, - return_url: `${window.location.origin}${return_url}`, + return_url: `${return_url}`, }) .then((res: DefaultResponse) => { resetForm(); diff --git a/src/components/organisms/ResetPasswordForm/ResetPasswordForm.tsx b/src/components/organisms/ResetPasswordForm/ResetPasswordForm.tsx index ba81fc26..b6e3aee8 100644 --- a/src/components/organisms/ResetPasswordForm/ResetPasswordForm.tsx +++ b/src/components/organisms/ResetPasswordForm/ResetPasswordForm.tsx @@ -91,7 +91,7 @@ export const ResetPasswordForm: React.FC = ({ ) => { forgot({ email: values.email, - return_url: `${window.location.origin}/${return_url}`, + return_url: `${return_url}`, }) .then(() => onFirstStepSuccess && onFirstStepSuccess()) .catch((err: ResponseError) => {