fix routepath
This commit is contained in:
parent
aff9c676d3
commit
6d594ae82e
|
|
@ -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}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue