Skip to content

Commit

Permalink
feat(theme-default): use router for Algolia search to reach no refresh (
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored and ulivz committed Jul 20, 2019
1 parent abad4c5 commit 644142b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export default {
// #697 Make docsearch work well at i18n mode.
algoliaOptions: Object.assign({
'facetFilters': [`lang:${lang}`].concat(algoliaOptions.facetFilters || [])
}, algoliaOptions)
}, algoliaOptions),
handleSelected: (input, event, suggestion) => {
this.$router.push(new URL(suggestion.url).pathname)
}
}
))
})
Expand Down

0 comments on commit 644142b

Please sign in to comment.