Skip to content

Commit

Permalink
fix routepath
Browse files Browse the repository at this point in the history
  • Loading branch information
jyehn committed Mar 28, 2022
1 parent aff9c67 commit 6d594ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vdoing/components/AlgoliaSearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default {
}, algoliaOptions),
handleSelected: (input, event, suggestion) => {
const { pathname, hash } = new URL(suggestion.url)
const routepath = pathname.replace(this.$site.base, '/');
const _hash = decodeURIComponent(hash)
this.$router.push(`${routepath}${_hash}`)
}
Expand Down

0 comments on commit 6d594ae

Please sign in to comment.