fix: redirect to a valid route

This commit is contained in:
Mauricio Siu 2024-04-30 23:59:54 -06:00
parent ed05018074
commit 6c5e1eab44
7 changed files with 7 additions and 7 deletions

View File

@ -65,7 +65,7 @@ export const Login2FA = ({ authId }: Props) => {
duration: 2000,
});
push("/dashboard");
push("/dashboard/projects");
})
.catch(() => {
toast.error("Signin failed", {

View File

@ -242,7 +242,7 @@ export async function getServerSideProps(
return {
redirect: {
permanent: false,
destination: "/dashboard",
destination: "/dashboard/projects",
},
};
}

View File

@ -211,7 +211,7 @@ export async function getServerSideProps(
return {
redirect: {
permanent: false,
destination: "/dashboard",
destination: "/dashboard/projects",
},
};
}

View File

@ -213,7 +213,7 @@ export async function getServerSideProps(
return {
redirect: {
permanent: false,
destination: "/dashboard",
destination: "/dashboard/projects",
},
};
}

View File

@ -212,7 +212,7 @@ export async function getServerSideProps(
return {
redirect: {
permanent: false,
destination: "/dashboard",
destination: "/dashboard/projects",
},
};
}

View File

@ -212,7 +212,7 @@ export async function getServerSideProps(
return {
redirect: {
permanent: false,
destination: "/dashboard",
destination: "/dashboard/projects",
},
};
}

View File

@ -205,7 +205,7 @@ export async function getServerSideProps(
return {
redirect: {
permanent: false,
destination: "/dashboard",
destination: "/dashboard/projects",
},
};
}