From 9e4c12fcd8729f0be2689ec35da620b852a418bf Mon Sep 17 00:00:00 2001 From: Jimmy Quiroga Date: Tue, 3 Feb 2026 17:05:21 -0400 Subject: [PATCH] FOUR-29085 change the redirect --- src/components/task.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/task.vue b/src/components/task.vue index 5fd7038a..6d3f4605 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -900,11 +900,16 @@ export default { * @param {Object} data - The event data containing the tokenId of the task. */ async handleRedirectToTask(data) { - if ( - (data?.params[0]?.tokenId && - this.task.user?.id === data.params[0]?.userId) || - this.task.elementDestination?.type === 'taskSource' - ) { + const isWebEntry = !this.task; + let applyRedirect; + if (isWebEntry) { + applyRedirect = data?.params[0]?.tokenId; + } else { + applyRedirect = (data?.params[0]?.tokenId && + this.task.user?.id === data.params[0]?.userId) || + this.task.elementDestination?.type === 'taskSource'; + } + if (applyRedirect) { this.loadingTask = true; // Check if interstitial tasks are allowed for this task. if (this.task && !(this.task.allow_interstitial || this.isSameUser(this.task, data))) {