Skip to content

Commit

Permalink
Display back button on the DIFM for the site-setup flow
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 authored and zaguiini committed Dec 24, 2024
1 parent 6932dd5 commit 77cb107
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion client/landing/stepper/declarative-flow/site-setup-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,12 @@ const siteSetupFlow: Flow = {
return navigate( `importerWordpress?${ urlQueryParams.toString() }` );

case 'difmStartingPoint': {
return exitFlow( `/start/website-design-services/?siteSlug=${ siteSlug }` );
const backUrl = window.location.href.replace( window.location.origin, '' );
return exitFlow(
`/start/website-design-services/?siteSlug=${ siteSlug }&back_to=${ encodeURIComponent(
backUrl
) }`
);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion client/signup/config/flows-pure.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ export function generateFlows( {
destination: getDIFMSignupDestination,
description: 'A flow for DIFM onboarding',
excludeFromManageSiteFlows: true,
providesDependenciesInQuery: [ 'siteSlug' ],
providesDependenciesInQuery: [ 'siteSlug', 'back_to' ],
optionalDependenciesInQuery: [ 'back_to' ],
lastModified: '2024-06-14',
enablePresales: false,
},
Expand Down

0 comments on commit 77cb107

Please sign in to comment.