From 490fc4eaba1a1bb490d2c475adfd697fec61c5a0 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 4 Oct 2024 20:40:27 +0530 Subject: [PATCH] fix: Remove the usage of asyncComponent in emoji picker (#10232) This PR has the following fixes 1. preview of article inside the iframe, earlier this didn't work because the iframe didn't get the URL correctly. We fix that by passing the URL is a query instead 2. Emoji picker caused a weird redirect, this was only happening when the chunk was loaded async, this PR changes it to use regular loading instead --- app/javascript/widget/components/ChatInputWrap.vue | 5 +---- app/javascript/widget/router.js | 1 - app/javascript/widget/views/ArticleViewer.vue | 8 +------- app/javascript/widget/views/Home.vue | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/app/javascript/widget/components/ChatInputWrap.vue b/app/javascript/widget/components/ChatInputWrap.vue index 0ff4f09e5..32b2bb72a 100755 --- a/app/javascript/widget/components/ChatInputWrap.vue +++ b/app/javascript/widget/components/ChatInputWrap.vue @@ -1,5 +1,4 @@ diff --git a/app/javascript/widget/views/Home.vue b/app/javascript/widget/views/Home.vue index c10521a18..c2a3990a2 100755 --- a/app/javascript/widget/views/Home.vue +++ b/app/javascript/widget/views/Home.vue @@ -79,7 +79,7 @@ export default { } this.$router.push({ name: 'article-viewer', - params: { link: linkToOpen }, + query: { link: linkToOpen }, }); }, viewAllArticles() {