Skip to content

Commit ac680f5

Browse files
committed
return search query as requested from FR-FE3251
1 parent 4336501 commit ac680f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vue/src/components/Topbar.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,8 @@ export default {
201201
});
202202
},
203203
navigateToSearch() {
204-
this.$router.push({ path: `/search`, query: { string: this.searchQuery } }).catch(err => {
205-
this.$router.push({ path: "/" });
206-
});
204+
const searchQuery = this.searchQuery.trim()
205+
return searchQuery
207206
},
208207
navigateToAccount() {
209208
this.$router.push({ path: `/account` }).catch(err => {

0 commit comments

Comments
 (0)