From 768680add6e0d048a56ed0d68422afd992824002 Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Fri, 6 Dec 2024 13:17:49 +0100 Subject: [PATCH] fix: use `/processes` route for run instance link Closes #4741 --- CHANGELOG.md | 4 ++++ .../zeebe-plugin/start-instance-plugin/StartInstancePlugin.js | 2 +- .../__tests__/StartInstancePluginSpec.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1f22294af..c7ea8b294f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes to the [Camunda Modeler](https://github.com/camunda/camunda- ___Note:__ Yet to be released changes appear here._ +### General + +* `FIX`: use `/processes` route for run instance link ([#4741](https://github.com/camunda/camunda-modeler/issues/4741)) + ## 5.30.0 ### General diff --git a/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js b/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js index 9b37356770..dd52d94dc1 100644 --- a/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js +++ b/client/src/plugins/zeebe-plugin/start-instance-plugin/StartInstancePlugin.js @@ -351,7 +351,7 @@ function CloudLink(props) { } = response; const clusterUrl = getClusterUrl(endpoint); - const url = `${clusterUrl}/instances/${processInstanceKey}`; + const url = `${clusterUrl}/processes/${processInstanceKey}`; return (
diff --git a/client/src/plugins/zeebe-plugin/start-instance-plugin/__tests__/StartInstancePluginSpec.js b/client/src/plugins/zeebe-plugin/start-instance-plugin/__tests__/StartInstancePluginSpec.js index c2adcde0a6..b2eea28b65 100644 --- a/client/src/plugins/zeebe-plugin/start-instance-plugin/__tests__/StartInstancePluginSpec.js +++ b/client/src/plugins/zeebe-plugin/start-instance-plugin/__tests__/StartInstancePluginSpec.js @@ -444,7 +444,7 @@ describe(' (Zeebe)', function() { const notificationHTML = shallow(notification.content).html().replace(/&/g, '&'); expect(notificationHTML).to.include( - 'https://region.operate.camunda.io/CLUSTER_ID/instances/test' + 'https://region.operate.camunda.io/CLUSTER_ID/processes/test' ); });