Skip to content

Commit

Permalink
fix(plugin-search): incorrect page path when configuring base, close
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo authored Oct 12, 2024
1 parent 2b5c0df commit 012cbaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/plugin-search/src/client/components/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
toRef,
watch,
} from 'vue'
import { useRouteLocale, useRouter } from 'vuepress/client'
import { useRouteLocale, useRouter, withBase } from 'vuepress/client'
import { useLocale, useSearchIndex } from '../composables/index.js'
import { LRUCache } from '../utils/index.js'
import BackIcon from './icons/BackIcon.vue'
Expand Down Expand Up @@ -359,7 +359,7 @@ function formMarkRegex(terms: Set<string>) {
:aria-selected="selectedIndex === index ? 'true' : 'false'"
>
<a
:href="p.id"
:href="withBase(p.id)"
class="result"
:class="{
selected: selectedIndex === index,
Expand Down

0 comments on commit 012cbaf

Please sign in to comment.