Use MKTG ROOT LINK instead of LMS_ROOT_URL
This commit is contained in:
@@ -21,7 +21,7 @@ const wrapperRendered = setInterval(() => {
|
||||
isActive: window.isActive,
|
||||
platformName: window.platformName,
|
||||
siteName: window.siteName,
|
||||
lmsUrlRoot: window.lmsUrlRoot
|
||||
mktgRootLink: window.mktgRootLink
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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: '',
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user