File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ) {
You can’t perform that action at this time.
0 commit comments