From 144574535ac1222235bc18c4c2eca8090e82b2be Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sun, 6 Mar 2022 17:25:23 -0800 Subject: [PATCH] Fix basePath? --- client/components/Link.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/Link.tsx b/client/components/Link.tsx index 749faaa..836df88 100644 --- a/client/components/Link.tsx +++ b/client/components/Link.tsx @@ -3,8 +3,8 @@ import { useRouter } from "next/router"; const Link = (props: LinkProps) => { const { basePath } = useRouter(); - - return + const href = basePath ? `/${basePath}/${props.href}` : props.href; + return } export default Link \ No newline at end of file