diff --git a/components/auth/login-2fa.tsx b/components/auth/login-2fa.tsx index 46d82cbea..17b2d483e 100644 --- a/components/auth/login-2fa.tsx +++ b/components/auth/login-2fa.tsx @@ -65,7 +65,7 @@ export const Login2FA = ({ authId }: Props) => { duration: 2000, }); - push("/dashboard"); + push("/dashboard/projects"); }) .catch(() => { toast.error("Signin failed", { diff --git a/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx b/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx index 33e4dd080..2ea8a8cc2 100644 --- a/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx +++ b/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx @@ -242,7 +242,7 @@ export async function getServerSideProps( return { redirect: { permanent: false, - destination: "/dashboard", + destination: "/dashboard/projects", }, }; } diff --git a/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx b/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx index 2f9d4cf3c..a820b9400 100644 --- a/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx +++ b/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx @@ -211,7 +211,7 @@ export async function getServerSideProps( return { redirect: { permanent: false, - destination: "/dashboard", + destination: "/dashboard/projects", }, }; } diff --git a/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx b/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx index 2b88686c5..9d7f6eac7 100644 --- a/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx +++ b/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx @@ -213,7 +213,7 @@ export async function getServerSideProps( return { redirect: { permanent: false, - destination: "/dashboard", + destination: "/dashboard/projects", }, }; } diff --git a/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx b/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx index 095fcd6c5..e5c191b61 100644 --- a/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx +++ b/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx @@ -212,7 +212,7 @@ export async function getServerSideProps( return { redirect: { permanent: false, - destination: "/dashboard", + destination: "/dashboard/projects", }, }; } diff --git a/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx b/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx index 222a72980..9d1cda3df 100644 --- a/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx +++ b/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx @@ -212,7 +212,7 @@ export async function getServerSideProps( return { redirect: { permanent: false, - destination: "/dashboard", + destination: "/dashboard/projects", }, }; } diff --git a/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx b/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx index e22001332..f6acf1866 100644 --- a/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx +++ b/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx @@ -205,7 +205,7 @@ export async function getServerSideProps( return { redirect: { permanent: false, - destination: "/dashboard", + destination: "/dashboard/projects", }, }; }