From 30249dc2c3d933dadf6e22e64728a6ffd3647f8e Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 11 Jul 2022 23:25:49 +0530 Subject: [PATCH] fix: regression caused by #887 --- src/client/theme-default/composables/sidebar.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/composables/sidebar.ts b/src/client/theme-default/composables/sidebar.ts index 7baedde4..123fe9cc 100644 --- a/src/client/theme-default/composables/sidebar.ts +++ b/src/client/theme-default/composables/sidebar.ts @@ -10,7 +10,8 @@ export function useSidebar() { const sidebar = computed(() => { const sidebarConfig = theme.value.sidebar - return sidebarConfig ? getSidebar(sidebarConfig, route.path) : [] + const relativePath = route.data.relativePath + return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : [] }) const hasSidebar = computed(() => {