diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py index acd1e06499..a3b39ba6b2 100644 --- a/cms/djangoapps/contentstore/utils.py +++ b/cms/djangoapps/contentstore/utils.py @@ -176,7 +176,11 @@ def get_pages_and_resources_url(course_locator): Gets course authoring microfrontend URL for Pages and Resources view. """ pages_and_resources_url = None - if use_course_authoring_mfe(course_locator.org) and ENABLE_PAGES_AND_RESOURCES_MICROFRONTEND.is_enabled(course_locator): + if ( + use_course_authoring_mfe(course_locator.org) + and + ENABLE_PAGES_AND_RESOURCES_MICROFRONTEND.is_enabled(course_locator) + ): mfe_base_url = get_course_authoring_url(course_locator) if mfe_base_url: pages_and_resources_url = f'{mfe_base_url}/course/{course_locator}/pages-and-resources'