diff --git a/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx b/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx index c4eb9e68038..cf26f4ef261 100644 --- a/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx +++ b/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx @@ -55,7 +55,12 @@ export class CreatePipeline extends React.Component { const Pipeline = (props: { pipeline: any, type: 'pipeline' | 'strategy' }): JSX.Element => { const clicked = () => { ReactGA.event({category: 'Pipelines', action: `Configure ${props.type} (via top level)`}); - ReactInjector.$state.go('^.pipelineConfig', {pipelineId: props.pipeline.id}); + const { $state } = ReactInjector; + if (!$state.current.name.includes('.executions.execution')) { + $state.go('^.pipelineConfig', { pipelineId: props.pipeline.id }); + } else { + $state.go('^.^.pipelineConfig', { pipelineId: props.pipeline.id }); + } } return (