From 25a1fe90bddd021a1ce5e068d8cad455687647bf Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 15 Apr 2023 23:54:20 +0530 Subject: [PATCH] fix(search): avoid double base --- src/client/theme-default/components/VPLocalSearchBox.vue | 4 ++-- src/node/plugins/localSearchPlugin.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/theme-default/components/VPLocalSearchBox.vue b/src/client/theme-default/components/VPLocalSearchBox.vue index 6b1cdd58..ab180c6b 100644 --- a/src/client/theme-default/components/VPLocalSearchBox.vue +++ b/src/client/theme-default/components/VPLocalSearchBox.vue @@ -260,7 +260,7 @@ const router = useRouter() onKeyStroke('Enter', () => { const selectedPackage = results.value[selectedIndex.value] if (selectedPackage) { - router.go(withBase(selectedPackage.id)) + router.go(selectedPackage.id) emit('close') } }) @@ -391,7 +391,7 @@ useEventListener('popstate', (event) => {