commit
afedae844e
|
|
@ -46,6 +46,7 @@ export default {
|
||||||
}, algoliaOptions),
|
}, algoliaOptions),
|
||||||
handleSelected: (input, event, suggestion) => {
|
handleSelected: (input, event, suggestion) => {
|
||||||
const { pathname, hash } = new URL(suggestion.url)
|
const { pathname, hash } = new URL(suggestion.url)
|
||||||
|
const routepath = pathname.replace(this.$site.base, '/');
|
||||||
const _hash = decodeURIComponent(hash)
|
const _hash = decodeURIComponent(hash)
|
||||||
this.$router.push(`${routepath}${_hash}`)
|
this.$router.push(`${routepath}${_hash}`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue