diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 9127d6b..afa9d2f 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -70,7 +70,8 @@ export default { else this.$router.go(1); }, goToSearchPage() { - if(!this.keywords) return; + if (!this.keywords) return; + if (this.$route.name === 'search' && this.$route.query.keywords === this.keywords) return; this.$router.push({ name: "search", query: { keywords: this.keywords },