diff --git a/src/components/task.vue b/src/components/task.vue index 35a4998c0..b87b0bc30 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -759,6 +759,7 @@ export default { break; default: console.warn('redirect', data); + window.location.href = `/requests/${this.requestId}`; } } ); diff --git a/tests/e2e/specs/Task.spec.js b/tests/e2e/specs/Task.spec.js index 127005581..7ed71b9fd 100644 --- a/tests/e2e/specs/Task.spec.js +++ b/tests/e2e/specs/Task.spec.js @@ -718,7 +718,7 @@ describe("Task component", () => { } ); - cy.socketEvent("ProcessMaker\\Events\\ProcessUpdated", { + cy.socketEvent("ProcessMaker\\Events\\RedirectTo", { requestId: 1, event: "ACTIVITY_COMPLETED" });