diff --git a/lms/static/js/student_account/StudentAccountDeletionInitializer.js b/lms/static/js/student_account/StudentAccountDeletionInitializer.js index 9be01bbbc9..90c3868b7a 100644 --- a/lms/static/js/student_account/StudentAccountDeletionInitializer.js +++ b/lms/static/js/student_account/StudentAccountDeletionInitializer.js @@ -21,7 +21,7 @@ const wrapperRendered = setInterval(() => { isActive: window.isActive, platformName: window.platformName, siteName: window.siteName, - lmsUrlRoot: window.lmsUrlRoot + mktgRootLink: window.mktgRootLink }, }); } diff --git a/lms/static/js/student_account/components/StudentAccountDeletion.jsx b/lms/static/js/student_account/components/StudentAccountDeletion.jsx index 3c4aea3621..b407e1a6f9 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletion.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletion.jsx @@ -145,7 +145,7 @@ export class StudentAccountDeletion extends React.Component { onClose={this.closeDeletionModal} platformName={this.props.platformName} siteName={this.props.siteName} - lmsUrlRoot={this.props.lmsUrlRoot} + mktgRootLink={this.props.mktgRootLink} />} ); @@ -159,11 +159,11 @@ StudentAccountDeletion.propTypes = { }).isRequired, platformName: PropTypes.string, siteName: PropTypes.string, - lmsUrlRoot: PropTypes.string, + mktgRootLink: PropTypes.string, }; StudentAccountDeletion.defaultProps = { platformName: '', siteName: '', - lmsUrlRoot: '', + mktgRootLink: '', }; diff --git a/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx b/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx index 0eff6d14b7..f17811f93a 100644 --- a/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx +++ b/lms/static/js/student_account/components/StudentAccountDeletionModal.jsx @@ -31,7 +31,7 @@ class StudentAccountDeletionConfirmationModal extends React.Component { this.props.onClose(); removeLoggedInCookies(); - window.location.href = this.props.lmsUrlRoot; + window.location.href = this.props.mktgRootLink; } deleteAccount() { @@ -215,14 +215,14 @@ StudentAccountDeletionConfirmationModal.propTypes = { onClose: PropTypes.func, platformName: PropTypes.string, siteName: PropTypes.string, - lmsUrlRoot: PropTypes.string, + mktgRootLink: PropTypes.string, }; StudentAccountDeletionConfirmationModal.defaultProps = { onClose: () => {}, platformName: "", siteName: "", - lmsUrlRoot: "", + mktgRootLink: "", }; export default StudentAccountDeletionConfirmationModal; diff --git a/lms/templates/student_account/account_settings.html b/lms/templates/student_account/account_settings.html index 57d5edc48f..326fca4eef 100644 --- a/lms/templates/student_account/account_settings.html +++ b/lms/templates/student_account/account_settings.html @@ -79,7 +79,7 @@ from openedx.core.djangoapps.user_api.accounts.utils import is_secondary_email_f window.isActive = ${ user.is_active | n, dump_js_escaped_json }; window.platformName = "${ platform_name | n, js_escaped_string }"; window.siteName = "${ static.get_value('SITE_NAME', settings.SITE_NAME) | n, js_escaped_string }"; - window.lmsUrlRoot = "${ static.get_value('LMS_ROOT_URL', settings.LMS_ROOT_URL) | n, js_escaped_string }"; + window.mktgRootLink = "${ static.marketing_link('ROOT') | n, js_escaped_string }"; <%static:webpack entry="StudentAccountDeletionInitializer">