fix: Reloading bug on Content page
diff --git a/erpnext/public/js/education/lms/routes.js b/erpnext/public/js/education/lms/routes.js
index d5aab29..29ebd3a 100644
--- a/erpnext/public/js/education/lms/routes.js
+++ b/erpnext/public/js/education/lms/routes.js
@@ -27,9 +27,8 @@
 		path: '/Program/:program_name/:course_name/:topic/:type/:content',
 		component: ContentPage,
 		props: true,
-		beforeEnter: (to, from, next) => {
-			console.log(from.params.program_name)
-			if (lms.store.checkProgramEnrollment(from.params.program_name)) {
+		beforeRouteUpdate (to, from, next) {
+			if (lms.store.checkProgramEnrollment(to.params.program_name)) {
 				next()
 			} else {
 				next({