page.exit( '/plugins/*', ( context, next ) => { if ( 0 !== page.current.indexOf( '/plugins/' ) ) { pluginsController.resetHistory(); } next(); } );
/** * External dependencies */ import { current } from 'page'; import i18n from 'i18n-calypso'; /** * Internal dependencies */ import stepActions from 'lib/signup/step-actions'; export default { survey: { stepName: 'survey', props: { surveySiteType: ( current && current.toString().match( /\/start\/(blog|delta-blog)/ ) ) ? 'blog' : 'site' }, providesDependencies: [ 'surveySiteType', 'surveyQuestion' ] }, themes: { stepName: 'themes', dependencies: [ 'siteSlug' ], providesDependencies: [ 'themeSlugWithRepo' ] }, 'portfolio-themes': { stepName: 'portfolio-themes', props: { designType: 'grid' },