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 e0b730a commit 30249dcCopy full SHA for 30249dc
src/client/theme-default/composables/sidebar.ts
@@ -10,7 +10,8 @@ export function useSidebar() {
10
11
const sidebar = computed(() => {
12
const sidebarConfig = theme.value.sidebar
13
- return sidebarConfig ? getSidebar(sidebarConfig, route.path) : []
+ const relativePath = route.data.relativePath
14
+ return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : []
15
})
16
17
const hasSidebar = computed(() => {
0 commit comments