We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120d885 commit 25777e4Copy full SHA for 25777e4
packages/@vuepress/theme-default/components/AlgoliaSearchBox.vue
@@ -37,7 +37,8 @@ export default {
37
'facetFilters': [`lang:${lang}`].concat(algoliaOptions.facetFilters || [])
38
}, algoliaOptions),
39
handleSelected: (input, event, suggestion) => {
40
- this.$router.push(new URL(suggestion.url).pathname)
+ const { pathname, hash } = new URL(suggestion.url)
41
+ this.$router.push(`${pathname}${hash}`)
42
}
43
44
))
0 commit comments