From ba15d23bb5d861c7714354dab32070a8e63ba18c Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 6 Mar 2024 15:00:42 +0000 Subject: [PATCH] Removing odd redirect check and adding back in previous check --- lms/djangoapps/courseware/views/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/views/index.py b/lms/djangoapps/courseware/views/index.py index 60ee9c001d..f830bdf31e 100644 --- a/lms/djangoapps/courseware/views/index.py +++ b/lms/djangoapps/courseware/views/index.py @@ -182,6 +182,7 @@ def _redirect_if_course_updated(): return self.render(request) except CourseAccessRedirect as exception: # pylint: disable=broad-except + _redirect_if_course_updated() return CourseTabView.handle_exceptions(request, self.course_key, self.course, exception) except CoursewareAccessException as exception: # pylint: disable=broad-except _redirect_if_course_updated() @@ -254,7 +255,7 @@ def render(self, request): self.section = self._find_section() if self.chapter and self.section: - self._redirect_if_not_requested_section() +# self._redirect_if_not_requested_section() self._save_positions() self._prefetch_and_bind_section() self._redirect_to_learning_mfe()