From fb6fa7da8b80241c8780fbca584a7dd7065b59a8 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 31 May 2023 12:25:30 -0400 Subject: [PATCH] go to the for-me page when submitting a task w/ burnettk --- spiffworkflow-frontend/src/routes/TaskShow.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-frontend/src/routes/TaskShow.tsx b/spiffworkflow-frontend/src/routes/TaskShow.tsx index 29310eef..6425f601 100644 --- a/spiffworkflow-frontend/src/routes/TaskShow.tsx +++ b/spiffworkflow-frontend/src/routes/TaskShow.tsx @@ -100,9 +100,11 @@ export default function TaskShow() { const { addError, removeError } = useAPIError(); + // if a user can complete a task then the for-me page should + // always work for them so use that since it will work in all cases const navigateToInterstitial = (myTask: Task) => { navigate( - `/admin/process-instances/${modifyProcessIdentifierForPathParam( + `/admin/process-instances/for-me/${modifyProcessIdentifierForPathParam( myTask.process_model_identifier )}/${myTask.process_instance_id}/interstitial` );