change canonical to canonicalUrl for keeping it consistent

This commit is contained in:
Onur Geneş
2022-01-18 20:13:24 +03:00
parent 45d6228868
commit 1835cca296
5 changed files with 7 additions and 8 deletions

View File

@ -27,7 +27,6 @@ const CommonSEO = ({ title, description, ogType, ogImage, twImage, canonicalUrl
<link
rel="canonical"
href={canonicalUrl ? canonicalUrl : `${siteMetadata.siteUrl}${router.asPath}`}
key={'canonicalUrl'}
/>
</Head>
)