File tree Expand file tree Collapse file tree
ApplicationGroup/Details/EnvCIDetails
app/details/triggerView/workflow/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ export default function EnvCIDetails({ filteredAppIds }: AppGroupDetailDefaultTy
271271 < EmptyView
272272 title = { APP_GROUP_CI_DETAILS . linkedCI . title }
273273 subTitle = { APP_GROUP_CI_DETAILS . linkedCI . title }
274- link = { `${ generatePath ( ROUTER_URLS . DEVTRON_APP_DETAILS . CI_DETAILS , { appId : pipeline . parentAppId } ) } /${ pipeline . parentCiPipeline } /logs ` }
274+ link = { `${ generatePath ( ROUTER_URLS . DEVTRON_APP_DETAILS . CI_DETAILS , { appId : pipeline . parentAppId } ) } /${ pipeline . parentCiPipeline } ` }
275275 linkText = { APP_GROUP_CI_DETAILS . linkedCI . linkText }
276276 />
277277 )
Original file line number Diff line number Diff line change 1515 */
1616
1717import { Component } from 'react'
18- import { generatePath , Link } from 'react-router-dom'
18+ import { Link } from 'react-router-dom'
1919import Tippy from '@tippyjs/react'
2020import { getWorkflowNodeStatusTitle , RouterV5Props , ROUTER_URLS } from '@devtron-labs/devtron-fe-common-lib'
2121import link from '@Icons/ic-link.svg'
2222import ICLinkedCINode from '@Icons/ic-node-build-linked.svg?react'
2323import { TriggerStatus } from '../../../../config'
24- import { DEFAULT_STATUS } from '../../../../../../config'
24+ import { DEFAULT_STATUS , URLS } from '../../../../../../config'
2525
2626export interface CINodeProps extends RouterV5Props < { appId : string } > {
2727 x : number
@@ -47,9 +47,7 @@ export interface CINodeProps extends RouterV5Props<{ appId: string }> {
4747
4848export class TriggerLinkedCINode extends Component < CINodeProps > {
4949 getCIDetailsURL ( ) : string {
50- return `${ generatePath ( ROUTER_URLS . DEVTRON_APP_DETAILS . CI_DETAILS , {
51- appId : this . props . params . appId ,
52- } ) } /${ this . props . id } `
50+ return `${ this . props . location . pathname . replace ( URLS . APP_TRIGGER , URLS . APP_CI_DETAILS ) } /${ this . props . id } `
5351 }
5452
5553 redirectToCIDetails ( ) {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export const URLS = {
2727 APP_DETAILS_K8 : 'k8s-resources' , // for V2
2828 APP_DETAILS_LOG : 'log-analyzer' , // for V2
2929 APP_DIFF_VIEW : 'diff-view' ,
30+ APP_TRIGGER : 'trigger' ,
3031 APP_OVERVIEW : 'overview' ,
3132 MANAGE_TRAFFIC : 'manage-traffic' ,
3233 APP_CI_DETAILS : 'ci-details' ,
You can’t perform that action at this time.
0 commit comments