Skip to content

Commit 9deda00

Browse files
Fix alternate lang tags (#3)
* Fix alternate lang tags * prettier * Scope down the change --------- Co-authored-by: Dan Abramov <[email protected]>
1 parent 7863b5b commit 9deda00

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: src/components/TitleAndMetaTags/TitleAndMetaTags.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const alternatePages = canonicalUrl => {
4343
};
4444

4545
const defaultPage = canonicalUrl => {
46-
return canonicalUrl.replace(urlRoot, 'https://reactjs.org');
46+
return canonicalUrl.replace(urlRoot, 'https://legacy.reactjs.org');
4747
};
4848

4949
const TitleAndMetaTags = ({
@@ -57,7 +57,10 @@ const TitleAndMetaTags = ({
5757
<meta property="og:title" content={title} />
5858
<meta property="og:type" content={ogType} />
5959
{canonicalUrl && <meta property="og:url" content={canonicalUrl} />}
60-
<meta property="og:image" content="https://reactjs.org/logo-og.png" />
60+
<meta
61+
property="og:image"
62+
content="https://legacy.reactjs.org/logo-og.png"
63+
/>
6164
<meta
6265
property="og:description"
6366
content={ogDescription || defaultDescription}

Diff for: src/site-constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// NOTE: We can't just use `location.toString()` because when we are rendering
99
// the SSR part in node.js we won't have a proper location.
10-
const urlRoot = 'https://reactjs.org';
10+
const urlRoot = 'https://legacy.reactjs.org';
1111
const version = '18.2.0';
1212
const babelURL = 'https://unpkg.com/[email protected]/babel.min.js';
1313

0 commit comments

Comments
 (0)