File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import { translate } from '@docusaurus/Translate';
29
29
import VersionSelector from '@theme/VersionSelector' ;
30
30
import FrameworkSelector from '../FrameworkSelector' ;
31
31
import { ChevronDown } from '@theme/icons' ;
32
+ import { useActiveVersion } from '@theme/hooks/useDocs' ;
32
33
33
34
import styles from './styles.module.scss' ;
34
35
import Backdrop from '@theme/Backdrop' ;
@@ -286,6 +287,7 @@ function DocSidebar({
286
287
isHidden,
287
288
...props
288
289
} : Props ) : JSX . Element | null {
290
+ const { path : homePath } = useActiveVersion ( ) ;
289
291
const showAnnouncementBar = useShowAnnouncementBar ( ) ;
290
292
const { hideableSidebar } = useThemeConfig ( ) ;
291
293
const { isClosed : isAnnouncementBarClosed } = useAnnouncementBar ( ) ;
@@ -326,7 +328,7 @@ function DocSidebar({
326
328
} ) }
327
329
>
328
330
< div className = { clsx ( styles . sidebarStart , 'doc-sidebar__start' ) } >
329
- < Link to = { useBaseUrl ( '/' ) } >
331
+ < Link to = { useBaseUrl ( homePath ) } >
330
332
< Logo tabIndex = { - 1 } className = { styles . sidebarLogo } />
331
333
</ Link >
332
334
< VersionSelector />
You can’t perform that action at this time.
0 commit comments