Skip to content

Commit 14e4594

Browse files
authored
Merge pull request #1895 from ProcessMaker/bugfix/FOUR-29215
Task Destination is not working correctly
2 parents 1b91b33 + b9bfb4b commit 14e4594

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/task.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ export default {
836836
this.reload();
837837
return;
838838
}
839-
839+
// get the event, element destination and token id from the data
840840
const { event, elementDestination, tokenId } = data;
841841
842842
// If the activity is completed and there is an element destination, set the element destination to the task
@@ -848,6 +848,12 @@ export default {
848848
this.task.elementDestination = elementDestination;
849849
// update allow_interstitial based on the element destination change after the submit
850850
this.task.allow_interstitial = elementDestination.type === "displayNextAssignedTask";
851+
852+
if (elementDestination?.type !== 'taskSource' && elementDestination?.value) {
853+
// redirect to the element destination value
854+
window.location.href = elementDestination.value;
855+
return;
856+
}
851857
}
852858
853859
if (event === 'ACTIVITY_EXCEPTION') {

0 commit comments

Comments
 (0)