diff --git a/src/welcome/ProgressiveProfiling.jsx b/src/welcome/ProgressiveProfiling.jsx index 3a0d152b..3e2a91d9 100644 --- a/src/welcome/ProgressiveProfiling.jsx +++ b/src/welcome/ProgressiveProfiling.jsx @@ -71,6 +71,7 @@ const ProgressiveProfiling = (props) => { const extendedProfile = props.location.state.optionalFields.extended_profile; const handleSubmit = (e) => { e.preventDefault(); + window.history.replaceState(props.location.state, null, ''); const authenticatedUser = getAuthenticatedUser(); const payload = { ...values, extendedProfile: [] }; if (Object.keys(extendedProfile).length > 0) { @@ -95,6 +96,7 @@ const ProgressiveProfiling = (props) => { const handleSkip = (e) => { e.preventDefault(); + window.history.replaceState(props.location.state, null, ''); setOpenDialog(true); sendTrackEvent('edx.bi.welcome.page.skip.link.clicked'); };