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
…lose: #2431) (#2432)
  • Loading branch information
bigmeow committed Jun 13, 2020
1 parent 20e7329 commit 6183840
Showing 1 changed file with 2 additions and 1 deletion.
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 6183840

Please sign in to comment.