diff --git a/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py b/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py index 4b6f37703e..287c613d89 100644 --- a/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py +++ b/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py @@ -73,11 +73,11 @@ def send_ace_message(goal, session_id): message_context = get_base_template_context(site) course_home_url = get_learning_mfe_home_url(course_key=goal.course_key, url_fragment='home') - - goals_unsubscribe_url = ( - f'{configuration_helpers.get_value("LEARNING_MICROFRONTEND_URL", settings.LEARNING_MICROFRONTEND_URL)}' - f'/goal-unsubscribe/{goal.unsubscribe_token}' + learning_microfrontend_url = configuration_helpers.get_value( + 'LEARNING_MICROFRONTEND_URL', + settings.LEARNING_MICROFRONTEND_URL, ) + goals_unsubscribe_url = f'{learning_microfrontend_url}/goal-unsubscribe/{goal.unsubscribe_token}' language = get_user_preference(user, LANGUAGE_KEY) # Code to allow displaying different banner images for different languages