From 378cebe5f40ab88a08c5a3f652b2543196cbf2d5 Mon Sep 17 00:00:00 2001 From: picklesrus Date: Fri, 15 Nov 2019 11:00:44 -0500 Subject: [PATCH] Take user to the homepage when finishing the join flow (unless they came from the editor). There is replication lag that makes creating a project immediatley a bad experience. We'll fix this in a followup. --- src/components/join-flow/welcome-step.jsx | 2 +- src/redux/navigation.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/join-flow/welcome-step.jsx b/src/components/join-flow/welcome-step.jsx index 7610a0fad..305ec5899 100644 --- a/src/components/join-flow/welcome-step.jsx +++ b/src/components/join-flow/welcome-step.jsx @@ -50,7 +50,7 @@ class WelcomeStep extends React.Component { innerClassName="join-flow-inner-welcome-step" nextButton={this.props.createProjectOnComplete ? ( - + ({ module.exports.handleCompleteRegistration = createProject => (dispatch => { if (createProject) { - window.location = '/projects/editor/?tutorial=getStarted'; + // TODO: Ideally this would take you to the editor with the getting started + // tutorial open. We need to do some extra work to wait for the user + // to be logged in before we try creating a project due to replication lag. + window.location = '/'; } else { dispatch(sessionActions.refreshSession()); dispatch(module.exports.setRegistrationOpen(false));