From 5104a182a22d73276b4ff2281a36e3341e9b96eb Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Wed, 29 Mar 2023 15:10:53 +0100 Subject: [PATCH] Pass basepath as part of the link for the home link --- site/components/header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/components/header.js b/site/components/header.js index 4965f9b..156c4d6 100644 --- a/site/components/header.js +++ b/site/components/header.js @@ -16,6 +16,7 @@ export default function Header({ searchText, changeSearch }) { } const listUrl = process.env.listUrl; const router = useRouter(); + const getLink = (path) => `${router.basePath}${path}`; return (
@@ -44,7 +45,7 @@ export default function Header({ searchText, changeSearch }) {