diff --git a/kolibri/plugins/coach/assets/src/views/plan/CoachExamsPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/CoachExamsPage/index.vue index 1b0870c0784..5e224adcb85 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/CoachExamsPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/CoachExamsPage/index.vue @@ -329,7 +329,10 @@ return this.quizzes; }, newExamRoute() { - return { name: PageNames.EXAM_CREATION_ROOT, params: { sectionIndex: 0 } }; + return { + name: PageNames.EXAM_CREATION_ROOT, + params: { classId: this.$route.params.classId, sectionIndex: 0, quizId: 'new' }, + }; }, dropdownOptions() { return [ @@ -392,14 +395,12 @@ }); }, handleSelect({ value }) { + const nextRoute = this.newExamRoute; const nextRouteName = { MAKE_NEW_QUIZ: PageNames.EXAM_CREATION_ROOT, SELECT_QUIZ: PageNames.QUIZ_SELECT_PRACTICE_QUIZ, }[value]; - const nextRoute = { - name: nextRouteName, - params: { ...this.$route.params, quizId: 'new', sectionIndex: 0 }, - }; + nextRoute.name = nextRouteName; this.$router.push(nextRoute); }, },