Skip to content

Commit 0c973a3

Browse files
authored
Always link main logo to the root of the site (#3226)
1 parent 56c923c commit 0c973a3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tough-starfishes-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Always link main logo to the root of the site

packages/gitbook/src/components/Header/HeaderLogo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function HeaderLogo(props: HeaderLogoProps) {
2020

2121
return (
2222
<Link
23-
href={linker.toAbsoluteURL(linker.toPathInSpace(''))}
23+
href={linker.toAbsoluteURL(linker.toPathInSite(''))}
2424
className={tcls('group/headerlogo', 'min-w-0', 'shrink', 'flex', 'items-center')}
2525
>
2626
{customization.header.logo ? (

0 commit comments

Comments
 (0)