diff --git a/theme/src/client/components/AutoLink.vue b/theme/src/client/components/AutoLink.vue index fc97729c..f62b823e 100644 --- a/theme/src/client/components/AutoLink.vue +++ b/theme/src/client/components/AutoLink.vue @@ -22,7 +22,7 @@ const link = computed(() => { return undefined if (isExternal.value) return props.href - return withBase(resolveRoutePath(props.href)) + return resolveRoutePath(props.href) }) function linkTo(e: Event) { diff --git a/theme/src/client/composables/sidebar.ts b/theme/src/client/composables/sidebar.ts index c6dcf26e..16e192cd 100644 --- a/theme/src/client/composables/sidebar.ts +++ b/theme/src/client/composables/sidebar.ts @@ -21,7 +21,7 @@ export function normalizePath(path: string) { export function getSidebarList(path: string, notesData: NotesData) { const link = Object.keys(notesData).find(link => - path.startsWith(normalizePath(withBase(link))), + path.startsWith(normalizePath(link)), ) return link ? notesData[link] : [] }