Skip to content

Commit

Permalink
fix guided onboarding destination
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyweight authored and escapemanuele committed Jun 25, 2024
1 parent a411df5 commit 1ff7b6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/signup/config/flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ function getEntrepreneurFlowDestination( { redirect_to } ) {
function getGuidedOnboardingFlowDestination( dependencies ) {
const { onboardingSegment, siteSlug, siteId, domainItem, cartItems, refParameter } = dependencies;

if ( ! onboardingSegment ) {
return getSignupDestination( dependencies );
}

if ( 'no-site' === siteSlug ) {
return '/home';
}
Expand Down

0 comments on commit 1ff7b6b

Please sign in to comment.