diff --git a/frontend_nuxt/components/HeaderComponent.vue b/frontend_nuxt/components/HeaderComponent.vue index e2c3aa583..c578aaa6a 100644 --- a/frontend_nuxt/components/HeaderComponent.vue +++ b/frontend_nuxt/components/HeaderComponent.vue @@ -75,7 +75,11 @@ const userMenu = ref(null) const menuBtn = ref(null) const goToHome = async () => { - await navigateTo('/', { replace: true }) + if (router.currentRoute.value.fullPath === '/') { + window.dispatchEvent(new Event('refresh-home')) + } else { + await navigateTo('/', { replace: true }) + } } const search = () => { showSearch.value = true diff --git a/frontend_nuxt/pages/index.vue b/frontend_nuxt/pages/index.vue index b96881085..383e9df3f 100644 --- a/frontend_nuxt/pages/index.vue +++ b/frontend_nuxt/pages/index.vue @@ -112,7 +112,7 @@