Skip to content

Commit

Permalink
import-hosted-site flow: fix regression caused by refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bogiii committed Jan 11, 2024
1 parent eec0618 commit e7d612a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ const ImportStep: Step = function ImportStep( props ) {
goToStep={ ( step, section, params ) => {
const stepPath = generateStepPath( step, section );
const from = encodeURIComponent( params?.fromUrl || '' );
const path = siteSlug
? `${ stepPath }?siteSlug=${ siteSlug }&from=${ from }`
: `${ stepPath }?from=${ from }`;

navigation.goToStep?.( `${ stepPath }?siteSlug=${ siteSlug }&from=${ from }` );
navigation.goToStep?.( path );
} }
/>
</ImportWrapper>
Expand Down

0 comments on commit e7d612a

Please sign in to comment.