fix: Routing after finishing a course topic
diff --git a/erpnext/public/js/education/lms/components/ContentNavigation.vue b/erpnext/public/js/education/lms/components/ContentNavigation.vue
index 47bcf25..bca8916 100644
--- a/erpnext/public/js/education/lms/components/ContentNavigation.vue
+++ b/erpnext/public/js/education/lms/components/ContentNavigation.vue
@@ -16,7 +16,7 @@
console.log("Adding Activity")
lms.call("add_activity",
{
- course: this.$route.params.course,
+ course: this.$route.params.course_name,
content_type: this.$route.params.type,
content: this.$route.params.content
}
@@ -25,7 +25,7 @@
},
goNext() {
this.addActivity()
- this.$router.push({ name: 'content', params: { course: this.$route.params.course, type:this.nextContentType, content:this.nextContent }})
+ this.$router.push({ name: 'content', params: { course: this.$route.params.course_name, type:this.nextContentType, content:this.nextContent }})
},
finish() {
this.addActivity()