Skip to content

Commit

Permalink
fix($theme-default): handle algolia search result with Chinese hash (c…
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmeow authored and Sergey Larionov committed Aug 19, 2020
1 parent 0247b61 commit 732e6c0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export default {
handleSelected: (input, event, suggestion) => {
const { pathname, hash } = new URL(suggestion.url)
const routepath = pathname.replace(this.$site.base, '/')
this.$router.push(`${routepath}${hash}`)
const _hash = decodeURIComponent(hash)
this.$router.push(`${routepath}${_hash}`)
}
}
))
Expand Down

0 comments on commit 732e6c0

Please sign in to comment.