go to the for-me page when submitting a task w/ burnettk

This commit is contained in:
jasquat 2023-05-31 12:25:30 -04:00
parent 3a10ef82cd
commit 0d22e27f78
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -100,9 +100,11 @@ export default function TaskShow() {
const { addError, removeError } = useAPIError(); 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) => { const navigateToInterstitial = (myTask: Task) => {
navigate( navigate(
`/admin/process-instances/${modifyProcessIdentifierForPathParam( `/admin/process-instances/for-me/${modifyProcessIdentifierForPathParam(
myTask.process_model_identifier myTask.process_model_identifier
)}/${myTask.process_instance_id}/interstitial` )}/${myTask.process_instance_id}/interstitial`
); );