Skip to content

Commit 1baa64a

Browse files
cgiovandoclaude
andcommitted
fix(frontend): point the header logo link at the app, not the server root
hot-header defaults its logo link to "/", so clicking the OAM logo left the app entirely when served from a subdirectory. Passes top-link-href, and types the attribute, which was missing from the element declaration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 1501b7e commit 1baa64a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎frontend/src/SiteHeader.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default function SiteHeader() {
6464
ref={headerRef}
6565
title="OpenAerialMap"
6666
logo={`${import.meta.env.BASE_URL}openaerialmap.svg`}
67+
top-link-href={appUrl("/")}
6768
size="s"
6869
tabs-center-align
6970
>

‎frontend/src/global.d.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ type HotHeaderAttributes = DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLEl
66
title?: string;
77
logo?: string;
88
size?: string;
9+
// The logo's own link. Defaults to "/" inside the component, which leaves
10+
// the app when it is served from a subdirectory.
11+
"top-link-href"?: string;
912
"tabs-center-align"?: boolean | string;
1013
};
1114

0 commit comments

Comments
 (0)