Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' && elementDestination?.value) {
// redirect to the element destination value
window.location.href = elementDestination.value;
return;
}
}

if (event === 'ACTIVITY_EXCEPTION') {
Expand Down
Loading