From b7a000b92febdc4b669ad6c23eeb7e991eaca9eb Mon Sep 17 00:00:00 2001 From: David Joy Date: Fri, 21 Feb 2020 11:58:48 -0500 Subject: [PATCH] Removing MFE redirect from courseware page. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We decided this approach - of redirecting to the new courseware MFE when users hit the page - won’t be feasible because there are still circumstances when we want that page to load. For instance, exams, or if an instructor wants to go back to the old experience. Instead of doing this, we need to track down all the links to the courseware page and put the waffle flag check on those instead. --- lms/djangoapps/courseware/views/index.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lms/djangoapps/courseware/views/index.py b/lms/djangoapps/courseware/views/index.py index 03968c37c0..4a0fcdd719 100644 --- a/lms/djangoapps/courseware/views/index.py +++ b/lms/djangoapps/courseware/views/index.py @@ -16,7 +16,6 @@ from django.conf import settings from django.contrib.auth.models import User from django.contrib.auth.views import redirect_to_login from django.http import Http404 -from django.shortcuts import redirect from django.template.context_processors import csrf from django.urls import reverse from django.utils.decorators import method_decorator @@ -32,8 +31,6 @@ from web_fragments.fragment import Fragment from edxmako.shortcuts import render_to_response, render_to_string from lms.djangoapps.courseware.courses import allow_public_access from lms.djangoapps.courseware.exceptions import CourseAccessRedirect -from lms.djangoapps.courseware.toggles import should_redirect_to_courseware_microfrontend -from lms.djangoapps.courseware.url_helpers import get_microfrontend_redirect_url from lms.djangoapps.experiments.utils import get_experiment_user_metadata_context from lms.djangoapps.gating.api import get_entrance_exam_score_ratio, get_entrance_exam_usage_key from lms.djangoapps.grades.api import CourseGradeFactory @@ -117,9 +114,6 @@ class CoursewareIndex(View): if not (request.user.is_authenticated or self.enable_unenrolled_access): return redirect_to_login(request.get_full_path()) - if should_redirect_to_courseware_microfrontend(self.course_key): - return redirect(get_microfrontend_redirect_url(self.course_key)) - self.original_chapter_url_name = chapter self.original_section_url_name = section self.chapter_url_name = chapter