Skip to content

Commit cc542cb

Browse files
taipeicoderclaude
andcommitted
site-setup: stop navigating to goals from back/next paths
The design-setup and import-capture back buttons and the goBack/goNext fallbacks still routed to the goals step. Repoint them to exit the flow so no UI path navigates to goals ahead of the step's removal. The goals step itself is unchanged here. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bf4b171 commit cc542cb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

client/landing/stepper/declarative-flow/flows/site-setup-flow/site-setup-flow.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ const siteSetupFlow: Flow = {
392392

393393
switch ( currentStep ) {
394394
case 'design-setup':
395-
return navigate( 'goals' );
395+
return exitFlow( `/home/${ siteId ?? siteSlug }` );
396396

397397
case 'importList': {
398398
if ( backToStep ) {
@@ -454,14 +454,14 @@ const siteSetupFlow: Flow = {
454454
return navigate( `import?siteSlug=${ siteSlug }` );
455455

456456
case 'import':
457-
return navigate( 'goals' );
457+
return exitFlow( `/home/${ siteId ?? siteSlug }` );
458458

459459
case 'verifyEmail':
460460
case 'trialAcknowledge':
461461
return navigate( `importerWordpress?${ urlQueryParams.toString() }` );
462462

463463
default:
464-
return navigate( 'goals' );
464+
return exitFlow( `/home/${ siteId ?? siteSlug }` );
465465
}
466466
};
467467

@@ -471,7 +471,7 @@ const siteSetupFlow: Flow = {
471471
return navigate( 'importList' );
472472

473473
default:
474-
return navigate( 'goals' );
474+
return exitFlow( `/home/${ siteId ?? siteSlug }` );
475475
}
476476
};
477477

0 commit comments

Comments
 (0)