Skip to content

Commit

Permalink
Redirect straight to importer after selecting Content Only
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Blanco committed May 24, 2024
1 parent 2b2890c commit 0802a3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,11 @@ const siteMigration: Flow = {
addQueryArgs(
{
siteSlug,
siteId,
from: fromQueryParam ?? '',
option: 'content',
backToFlow: `/${ flowPath }/${ STEPS.SITE_MIGRATION_IMPORT_OR_MIGRATE.slug }`,
},
'/setup/site-setup/importList'
`/setup/site-setup/importerWordpress`
)
);
}
Expand Down
4 changes: 4 additions & 0 deletions client/landing/stepper/declarative-flow/site-setup-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,10 @@ const siteSetupFlow: Flow = {
return navigate( `importList?siteSlug=${ siteSlug }` );

case 'importerWordpress':
if ( backToFlow ) {
return goToFlow( backToFlow );
}

if ( urlQueryParams.get( 'option' ) === 'content' ) {
return navigate( `importList?siteSlug=${ siteSlug }` );
}
Expand Down

0 comments on commit 0802a3d

Please sign in to comment.