diff --git a/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx b/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx index 52ae6366..a43f97ae 100644 --- a/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx +++ b/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx @@ -476,6 +476,7 @@ export function AddChangeSubjectPage() { .catch((err) => { console.log(err) }) + navigate(`/course/${vakID}`) } else { instance .put('vakken/' + vakID + '/', { @@ -487,6 +488,7 @@ export function AddChangeSubjectPage() { console.log(err) alert(err.response.data) }) + navigate(`/course/${vakID}`) } } @@ -659,7 +661,7 @@ export function AddChangeSubjectPage() { - navigate(`/course/${vakID}`) + navigate(`/`) } > {t('cancel')}