From cb01a2bc66d3f0376a56190799472522518d6986 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 3 Jul 2025 13:22:44 +0530 Subject: [PATCH] fix: Incorrect account ID in conversation header back button URL (#11866) --- .../widgets/conversation/ConversationHeader.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue index 7a3489265..cdcbd64b5 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue @@ -39,15 +39,21 @@ const chatMetadata = computed(() => props.chat.meta); const backButtonUrl = computed(() => { const { - params: { inbox_id: inboxId, label, teamId }, + params: { inbox_id: inboxId, label, teamId, id: customViewId }, name, } = route; + + const conversationTypeMap = { + conversation_through_mentions: 'mention', + conversation_through_unattended: 'unattended', + }; return conversationListPageURL({ - accountId, + accountId: accountId.value, inboxId, label, teamId, - conversationType: name === 'conversation_mentions' ? 'mention' : '', + conversationType: conversationTypeMap[name], + customViewId, }); });