Skip to content

Commit

Permalink
Use flow constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr committed Oct 24, 2024
1 parent 971645e commit b4cb7bf
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions client/landing/stepper/utils/flow-redirect-handler.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import {
BLOG_FLOW,
FREE_FLOW,
LINK_IN_BIO_FLOW,
VIDEOPRESS_FLOW,
SENSEI_FLOW,
} from '@automattic/onboarding';
import { recordTracksEvent } from 'calypso/lib/analytics/tracks';

// Flows to redirect
export const REMOVED_TAILORED_FLOWS = [
{ flow: 'blog', to: '/start:lang?' },
{ flow: 'free', to: '/start/free:lang?' },
{ flow: 'link-in-bio', to: '/start:lang?' },
{ flow: 'videopress', to: '/start:lang?' },
{ flow: 'sensei', to: ':lang?/plugins/sensei-pro/' },
{ flow: BLOG_FLOW, to: '/start:lang?' },
{ flow: FREE_FLOW, to: '/start/free:lang?' },
{ flow: LINK_IN_BIO_FLOW, to: '/start:lang?' },
{ flow: VIDEOPRESS_FLOW, to: '/start:lang?' },
{ flow: SENSEI_FLOW, to: ':lang?/plugins/sensei-pro/' },
];

// Regex pattern for the optional language code in the format xx or xx-yy
Expand Down

0 comments on commit b4cb7bf

Please sign in to comment.