Use MKTG ROOT LINK instead of LMS_ROOT_URL

This commit is contained in:
Luis Moreno
2019-08-28 14:20:05 -04:00
parent 1b5c27eea3
commit 35bd58a7e4
4 changed files with 8 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ const wrapperRendered = setInterval(() => {
isActive: window.isActive,
platformName: window.platformName,
siteName: window.siteName,
lmsUrlRoot: window.lmsUrlRoot
mktgRootLink: window.mktgRootLink
},
});
}

View File

@@ -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}
/>}
</div>
);
@@ -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: '',
};

View File

@@ -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;

View File

@@ -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 }";
</script>
<%static:webpack entry="StudentAccountDeletionInitializer">
</%static:webpack>