diff --git a/frontend/src/components/signup/TeamInviteStep.tsx b/frontend/src/components/signup/TeamInviteStep.tsx
index 60276d217..63588ca5c 100644
--- a/frontend/src/components/signup/TeamInviteStep.tsx
+++ b/frontend/src/components/signup/TeamInviteStep.tsx
@@ -4,6 +4,7 @@ import { useRouter } from "next/router";
import { useAddUsersToOrg } from "@app/hooks/api";
import { useFetchServerStatus } from "@app/hooks/api/serverDetails";
+import { ProjectType } from "@app/hooks/api/workspace/types";
import { usePopUp } from "@app/hooks/usePopUp";
import { Button, EmailServiceSetupModal } from "../v2";
@@ -22,7 +23,7 @@ export default function TeamInviteStep(): JSX.Element {
// Redirect user to the getting started page
const redirectToHome = async () => {
- router.push(`/org/${localStorage.getItem("orgData.id")}/overview`);
+ router.push(`/org/${localStorage.getItem("orgData.id")}/${ProjectType.SecretManager}/overview`);
};
const inviteUsers = async ({ emails: inviteEmails }: { emails: string }) => {
diff --git a/frontend/src/components/v2/projects/NewProjectModal.tsx b/frontend/src/components/v2/projects/NewProjectModal.tsx
index a081ef4f0..839153ea2 100644
--- a/frontend/src/components/v2/projects/NewProjectModal.tsx
+++ b/frontend/src/components/v2/projects/NewProjectModal.tsx
@@ -32,6 +32,7 @@ import {
useSubscription,
useUser
} from "@app/context";
+import { getWorkspaceHomePage } from "@app/helpers/workspace";
import {
fetchOrgUsers,
useAddUserToWsNonE2EE,
@@ -120,7 +121,7 @@ const NewProjectForm = ({ onOpenChange, projectType }: NewProjectFormProps) => {
try {
const {
data: {
- project: { id: newProjectId }
+ project
}
} = await createWs.mutateAsync({
projectName: name,
@@ -129,6 +130,7 @@ const NewProjectForm = ({ onOpenChange, projectType }: NewProjectFormProps) => {
template,
type: projectType
});
+ const { id: newProjectId } = project
if (addMembers) {
const orgUsers = await fetchOrgUsers(currentOrg.id);
@@ -148,7 +150,7 @@ const NewProjectForm = ({ onOpenChange, projectType }: NewProjectFormProps) => {
createNotification({ text: "Project created", type: "success" });
reset();
onOpenChange(false);
- router.push(`/${projectType}/${newProjectId}/${projectType}/overview`);
+ router.push(getWorkspaceHomePage(project));
} catch (err) {
console.error(err);
createNotification({ text: "Failed to create project", type: "error" });
diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx
index 0cbe2362d..07a40156a 100644
--- a/frontend/src/layouts/AppLayout/AppLayout.tsx
+++ b/frontend/src/layouts/AppLayout/AppLayout.tsx
@@ -41,6 +41,7 @@ import { usePopUp, useToggle } from "@app/hooks";
import { useGetOrgTrialUrl, useLogoutUser, useSelectOrganization } from "@app/hooks/api";
import { MfaMethod } from "@app/hooks/api/auth/types";
import { AuthMethod } from "@app/hooks/api/users/types";
+import { ProjectType } from "@app/hooks/api/workspace/types";
import { InsecureConnectionBanner } from "@app/layouts/AppLayout/components/InsecureConnectionBanner";
import { ProjectSelect } from "@app/layouts/AppLayout/components/ProjectSelect";
import { navigateUserToOrg } from "@app/views/Login/Login.utils";
@@ -340,30 +341,40 @@ export const AppLayout = ({ children }: LayoutProps) => {