Skip to content

Commit

Permalink
fix($theme-default): wrong algolia search route with base config (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored and meteorlxy committed Nov 27, 2019
1 parent 0bb85a4 commit b00b277
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default {
}, algoliaOptions),
handleSelected: (input, event, suggestion) => {
const { pathname, hash } = new URL(suggestion.url)
this.$router.push(`${pathname}${hash}`)
const routepath = pathname.replace(this.$site.base, '/')
this.$router.push(`${routepath}${hash}`)
}
}
))
Expand Down

0 comments on commit b00b277

Please sign in to comment.