diff --git a/extensions-site/app/components/header.tsx b/extensions-site/app/components/header.tsx index 06f5b935..8770beb0 100644 --- a/extensions-site/app/components/header.tsx +++ b/extensions-site/app/components/header.tsx @@ -2,6 +2,7 @@ import { IconDownload } from "./icons/download"; import { IconGoose } from "./icons/goose"; import { ThemeToggle } from "./themeToggle"; import { Button } from "./ui/button"; +import { SiteURLs } from '../constants'; import { NavLink, useLocation } from "react-router"; export const Header = () => { @@ -9,11 +10,14 @@ export const Header = () => { const { hash, pathname, search } = location; const stableDownload = "https://github.com/block/goose/releases/download/stable/Goose.zip"; - + + // link back to the main site if the icon is clicked on the extensions homepage + // otherwise link back to the extensions homepage + const gooseIconLink = pathname === "/" ? SiteURLs.GOOSE_HOMEPAGE : "/"; return (