From 934d321f5d2aafe05e8cf160a417f738cc68ce68 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Mon, 7 Aug 2023 09:47:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20bad=20canonical=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/landing/src/pages/_app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/landing/src/pages/_app.tsx b/apps/landing/src/pages/_app.tsx index 64ddf5e65..8e7af1570 100644 --- a/apps/landing/src/pages/_app.tsx +++ b/apps/landing/src/pages/_app.tsx @@ -44,7 +44,7 @@ const MyApp: NextPage = ({ Component, pageProps }) => { }, []); const canonicalUrl = React.useMemo(() => { - const path = router.pathname === "/" ? "" : router.pathname; + const path = router.asPath === "/" ? "" : router.asPath; if (router.locale === router.defaultLocale) { return absoluteUrl(path); } else {