diff --git a/components/Header.vue b/components/Header.vue index 641de92..3b2a699 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -120,10 +120,8 @@ export default { this.scrollPosition = window.scrollY }, async changeLanguage(lang) { + await this.$router.push('/') this.$i18n.setLocale(lang) - if (this.$router.currentRoute.fullPath.includes('blog')) { - await this.$router.push('/blog') - } }, }, mounted() {