diff --git a/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx b/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx index b20d68e..734d66a 100644 --- a/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx +++ b/plugins/harness-ci-cd/src/hooks/useProjectSlugEntity.tsx @@ -31,7 +31,7 @@ export const useProjectSlugFromEntity = ( ); serviceUrlMatch = match( - '(.*)/account/:accountId/module/:module/orgs/:orgId/projects/:projectId/services/:serviced?(.*)', + '(.*)/account/:accountId/module/:module/orgs/:orgId/projects/:projectId/services/:serviceId?(.*)', { decode: decodeURIComponent, }, @@ -45,7 +45,7 @@ export const useProjectSlugFromEntity = ( ); serviceUrlMatch = match( - '(.*)/account/:accountId/all/orgs/:orgId/projects/:projectId/services/:serviced?(.*)', + '(.*)/account/:accountId/all/orgs/:orgId/projects/:projectId/services/:serviceId?(.*)', { decode: decodeURIComponent, }, @@ -59,7 +59,7 @@ export const useProjectSlugFromEntity = ( ); serviceUrlMatch = match( - '(.*)/account/:accountId/:module/orgs/:orgId/projects/:projectId/services/:serviced?(.*)', + '(.*)/account/:accountId/:module/orgs/:orgId/projects/:projectId/services/:serviceId?(.*)', { decode: decodeURIComponent, },