From 9416dea01d27d2b885576ed683d5c558008e70a3 Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Mon, 9 Feb 2026 20:35:31 -0400 Subject: [PATCH 1/2] Enhance task handling by adding redirection logic for non-task source destinations --- src/components/task.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/task.vue b/src/components/task.vue index 88d17025..2f9fef62 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -836,7 +836,7 @@ export default { this.reload(); return; } - + // get the event, element destination and token id from the data const { event, elementDestination, tokenId } = data; // If the activity is completed and there is an element destination, set the element destination to the task @@ -848,6 +848,12 @@ export default { this.task.elementDestination = elementDestination; // update allow_interstitial based on the element destination change after the submit this.task.allow_interstitial = elementDestination.type === "displayNextAssignedTask"; + + if (elementDestination.type !== 'taskSource') { + // redirect to the element destination value + window.location.href = elementDestination.value; + return; + } } if (event === 'ACTIVITY_EXCEPTION') { From b9bfb4b53b650797319036766f7eecea8b3b0210 Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Mon, 9 Feb 2026 20:49:10 -0400 Subject: [PATCH 2/2] Refine task redirection logic to ensure valid element destinations are checked before redirecting --- src/components/task.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/task.vue b/src/components/task.vue index 2f9fef62..fa3a84c0 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -849,7 +849,7 @@ export default { // update allow_interstitial based on the element destination change after the submit this.task.allow_interstitial = elementDestination.type === "displayNextAssignedTask"; - if (elementDestination.type !== 'taskSource') { + if (elementDestination?.type !== 'taskSource' && elementDestination?.value) { // redirect to the element destination value window.location.href = elementDestination.value; return;