mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-30 17:26:24 +02:00
🐛 Fix bad canonical url
This commit is contained in:
parent
951a3e2ebc
commit
934d321f5d
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ const MyApp: NextPage<AppPropsWithLayout> = ({ 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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue