File tree 2 files changed +8
-1
lines changed
client/signup/steps/domains
packages/onboarding/src/utils
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { PLAN_PERSONAL } from '@automattic/calypso-products';
2
2
import page from '@automattic/calypso-router' ;
3
3
import { Spinner } from '@automattic/components' ;
4
4
import { isWithThemeFlow , isHostingSignupFlow , isOnboardingFlow } from '@automattic/onboarding' ;
5
- import { isTailoredSignupFlow } from '@automattic/onboarding/src' ;
5
+ import { isAIBuilderFlow , isTailoredSignupFlow } from '@automattic/onboarding/src' ;
6
6
import { withShoppingCart } from '@automattic/shopping-cart' ;
7
7
import clsx from 'clsx' ;
8
8
import { localize } from 'i18n-calypso' ;
@@ -1379,6 +1379,9 @@ export class RenderDomainsStep extends Component {
1379
1379
} else if ( isOnboardingFlow ( flowName ) && ! ! goBack ) {
1380
1380
backUrl = null ;
1381
1381
backLabelText = translate ( 'Back' ) ;
1382
+ } else if ( isAIBuilderFlow ( flowName ) ) {
1383
+ backUrl = `${ siteUrl } /wp-admin/site-editor.php?canvas=edit&referrer=${ flowName } &p=%2F&ai-step=edit` ;
1384
+ backLabelText = translate ( 'Keep Editing' ) ;
1382
1385
} else {
1383
1386
backUrl = getStepUrl ( flowName , stepName , null , this . getLocale ( ) ) ;
1384
1387
Original file line number Diff line number Diff line change @@ -141,3 +141,7 @@ export const isDIFMFlow = ( flowName: string | null ) => {
141
141
flowName && [ DIFM_FLOW , DIFM_FLOW_STORE , WEBSITE_DESIGN_SERVICES ] . includes ( flowName )
142
142
) ;
143
143
} ;
144
+
145
+ export const isAIBuilderFlow = ( flowName : string | null ) => {
146
+ return Boolean ( flowName && [ AI_SITE_BUILDER_FLOW ] . includes ( flowName ) ) ;
147
+ } ;
You can’t perform that action at this time.
0 commit comments