Skip to content

Commit

Permalink
Merge pull request #570 from jyehn/master
Browse files Browse the repository at this point in the history
fix routepath
  • Loading branch information
xugaoyi committed Mar 29, 2022
2 parents aff9c67 + 6d594ae commit afedae8
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

1 comment on commit afedae8

@vercel
Copy link

@vercel vercel bot commented on afedae8 Mar 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.