mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 20:48:07 +00:00
fix: Incorrect account ID in conversation header back button URL (#11866)
This commit is contained in:
@@ -39,15 +39,21 @@ const chatMetadata = computed(() => props.chat.meta);
|
|||||||
|
|
||||||
const backButtonUrl = computed(() => {
|
const backButtonUrl = computed(() => {
|
||||||
const {
|
const {
|
||||||
params: { inbox_id: inboxId, label, teamId },
|
params: { inbox_id: inboxId, label, teamId, id: customViewId },
|
||||||
name,
|
name,
|
||||||
} = route;
|
} = route;
|
||||||
|
|
||||||
|
const conversationTypeMap = {
|
||||||
|
conversation_through_mentions: 'mention',
|
||||||
|
conversation_through_unattended: 'unattended',
|
||||||
|
};
|
||||||
return conversationListPageURL({
|
return conversationListPageURL({
|
||||||
accountId,
|
accountId: accountId.value,
|
||||||
inboxId,
|
inboxId,
|
||||||
label,
|
label,
|
||||||
teamId,
|
teamId,
|
||||||
conversationType: name === 'conversation_mentions' ? 'mention' : '',
|
conversationType: conversationTypeMap[name],
|
||||||
|
customViewId,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user