Skip to content

Commit 3168f87

Browse files
committed
SEO
1 parent 965cf17 commit 3168f87

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

beta/src/components/Seo.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ export const Seo = withRouter(
4343
<meta
4444
property="og:url"
4545
key="og:url"
46-
content={`https://beta.reactjs.org${router.asPath.split(/[\?\#]/)[0]}`}
46+
content={`https://react.dev${router.asPath.split(/[\?\#]/)[0]}`}
4747
/>
4848
{title != null && (
49-
<meta property="og:title" content={title} key="og:title" />
49+
<meta
50+
property="og:title"
51+
content={isHomePage ? 'React' : title}
52+
key="og:title"
53+
/>
5054
)}
5155
{description != null && (
5256
<meta
@@ -59,7 +63,7 @@ export const Seo = withRouter(
5963
<meta
6064
property="og:image"
6165
key="og:image"
62-
content={`https://beta.reactjs.org${image}`}
66+
content={`https://react.dev${image}`}
6367
/>
6468

6569
{/* TWITTER */}
@@ -84,7 +88,7 @@ export const Seo = withRouter(
8488
<meta
8589
name="twitter:image"
8690
key="twitter:image"
87-
content={`https://beta.reactjs.org${image}`}
91+
content={`https://react.dev${image}`}
8892
/>
8993
<meta
9094
name="google-site-verification"

0 commit comments

Comments
 (0)