diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue index 79d96517d..eb2bc2bb4 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/ContactInfo.vue @@ -306,7 +306,7 @@ export default { }); } else if (isAInboxViewRoute(this.$route.name)) { this.$router.push({ - name: 'inbox', + name: 'inbox-view', }); } else if (this.$route.name !== 'contacts_dashboard') { this.$router.push({ diff --git a/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js b/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js index 643f69fab..63a32d72b 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js +++ b/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js @@ -6,8 +6,8 @@ const InboxView = () => import('../inbox/InboxView.vue'); export default { routes: [ { - path: frontendURL('accounts/:accountId/inbox'), - name: 'inbox', + path: frontendURL('accounts/:accountId/inbox-view'), + name: 'inbox_view', roles: ['administrator', 'agent'], component: InboxView, props: () => { @@ -15,7 +15,7 @@ export default { }, }, { - path: frontendURL('accounts/:accountId/inbox/:conversation_id'), + path: frontendURL('accounts/:accountId/inbox-view/:conversation_id'), name: 'inbox_view_conversation', roles: ['administrator', 'agent'], component: InboxView, diff --git a/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue b/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue index 64ff7936b..e0924b9c0 100644 --- a/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue +++ b/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue @@ -97,8 +97,8 @@ export default { methods: { redirectToInbox() { if (!this.conversationId) return; - if (this.$route.name === 'inbox') return; - this.$router.push({ name: 'inbox' }); + if (this.$route.name === 'inbox-view') return; + this.$router.push({ name: 'inbox-view' }); }, loadMoreNotifications() { if (this.uiFlags.isAllNotificationsLoaded) return; diff --git a/app/javascript/dashboard/routes/dashboard/inbox/components/InboxItemHeader.vue b/app/javascript/dashboard/routes/dashboard/inbox/components/InboxItemHeader.vue index 14882f84c..bf655465b 100644 --- a/app/javascript/dashboard/routes/dashboard/inbox/components/InboxItemHeader.vue +++ b/app/javascript/dashboard/routes/dashboard/inbox/components/InboxItemHeader.vue @@ -132,7 +132,7 @@ export default { .then(() => { this.showAlert(this.$t('INBOX.ALERTS.DELETE')); }); - this.$router.push({ name: 'inbox' }); + this.$router.push({ name: 'inbox-view' }); }, onClickNext() { this.$emit('next');