diff --git a/src/pages/campaigns/components/campaignForm/SurveyButton.tsx b/src/pages/campaigns/components/campaignForm/SurveyButton.tsx index 1561766f..30047bfb 100644 --- a/src/pages/campaigns/components/campaignForm/SurveyButton.tsx +++ b/src/pages/campaigns/components/campaignForm/SurveyButton.tsx @@ -13,8 +13,8 @@ export const SurveyButton = ({ campaign_id }: { campaign_id: string }) => { diff --git a/src/pages/preselectionForms/components/FormProvider.tsx b/src/pages/preselectionForms/components/FormProvider.tsx index 0f98e426..12b391f3 100644 --- a/src/pages/preselectionForms/components/FormProvider.tsx +++ b/src/pages/preselectionForms/components/FormProvider.tsx @@ -218,9 +218,7 @@ const FormProvider = ({ args.body.campaign = parseInt(values.campaign?.value); const res = await createForm(args); if (res && "data" in res) { - history.push( - `/backoffice/campaigns/preselection-forms/${res.data.id}` - ); + history.push(`/backoffice/preselection-forms/${res.data.id}`); add({ type: "success", message: "Form saved" }); } else { const errorCode = diff --git a/src/pages/preselectionForms/components/formTableCard/index.tsx b/src/pages/preselectionForms/components/formTableCard/index.tsx index cb81e986..a8dab918 100644 --- a/src/pages/preselectionForms/components/formTableCard/index.tsx +++ b/src/pages/preselectionForms/components/formTableCard/index.tsx @@ -50,13 +50,10 @@ export const FormTableCard = () => { onClick={(e) => { if (e.ctrlKey) window.open( - `/backoffice/campaigns/preselection-forms/${res.id}`, + `/backoffice/preselection-forms/${res.id}`, "_blank" ); - else - history.push( - `/backoffice/campaigns/preselection-forms/${res.id}` - ); + else history.push(`/backoffice/preselection-forms/${res.id}`); }} style={{ cursor: "pointer" }} /> diff --git a/src/pages/preselectionForms/edit/index.tsx b/src/pages/preselectionForms/edit/index.tsx index cbe0671d..a6c442ad 100644 --- a/src/pages/preselectionForms/edit/index.tsx +++ b/src/pages/preselectionForms/edit/index.tsx @@ -55,7 +55,7 @@ const PreselectionForm = () => { size="regular" back={{ text: "Back to list", - navigation: "/backoffice/campaigns/preselection-forms", + navigation: "/backoffice/preselection-forms", }} > {id ? "Edit Preselection Form" : "New Preselection Form"} diff --git a/src/pages/preselectionForms/new/index.tsx b/src/pages/preselectionForms/new/index.tsx index 951c8fe6..4d9068ce 100644 --- a/src/pages/preselectionForms/new/index.tsx +++ b/src/pages/preselectionForms/new/index.tsx @@ -32,7 +32,7 @@ const PreselectionForm = () => { size="regular" back={{ text: "Back to list", - navigation: "/backoffice/campaigns/preselection-forms", + navigation: "/backoffice/preselection-forms", }} > {id ? "Edit Preselection Form" : "New Preselection Form"}