Skip to content

Commit

Permalink
fix(seo): add missing og:url (#2305)
Browse files Browse the repository at this point in the history
* fix(seo): add missing `og:url`

* fix(seo): fix invalid attributes
  • Loading branch information
ykzts committed Nov 2, 2022
1 parent 8fb282b commit 8b7b716
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/SEO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export default function SEO({
{title && <meta content={siteName} property="og:site_name" />}
<meta content={title ?? siteName} property="og:title" />
<meta content={type} property="og:type" />
{path && (
<meta
content={new URL(path, process.env.NEXT_PUBLIC_BASE_URL).toString()}
property="og:url"
/>
)}

<meta content="summary_large_image" name="twitter:card" />
<meta content={`@${twitterAccount}`} name="twitter:site" />
Expand Down

0 comments on commit 8b7b716

Please sign in to comment.