adbrosaci / vue-lang-router

Vue language routing with (optional) localized URLs.
MIT License
66 stars 8 forks source link

incorrect LanguageSwitcher currentUrl, vue-router 4 #13

Open SergisGit opened 3 years ago

SergisGit commented 3 years ago

this.$router.currentRoute.fullPath => this.$router.currentRoute._value.fullPath (or we can use this.$route.fullPath)

image

radek-altof commented 3 years ago

Hi @SergisGit, I don't get much from your comment. Can you please provide better description of the issue and some demo page, where it is reproduced?

SergisGit commented 3 years ago

Hi @SergisGit, I don't get much from your comment. Can you please provide better description of the issue and some demo page, where it is reproduced?

image

this.$router.currentRoute.fullPath === undefined with vue-router 4. But we have this.$router.currentRoute.value.fullPath or this.$route.fullPath

takefy-dev commented 3 years ago

that is why it's not working the lang switcher