Skip to content

Commit

Permalink
fix: add missing hash in #1706 (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored and sarahdayan committed Aug 18, 2019
1 parent 120d885 commit 25777e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export default {
'facetFilters': [`lang:${lang}`].concat(algoliaOptions.facetFilters || [])
}, algoliaOptions),
handleSelected: (input, event, suggestion) => {
this.$router.push(new URL(suggestion.url).pathname)
const { pathname, hash } = new URL(suggestion.url)
this.$router.push(`${pathname}${hash}`)
}
}
))
Expand Down

0 comments on commit 25777e4

Please sign in to comment.