From 9deda00de45c5a56226536d1f9b764f9b01d8252 Mon Sep 17 00:00:00 2001 From: Ricky Date: Mon, 17 Apr 2023 16:13:01 -0400 Subject: [PATCH] Fix alternate lang tags (#3) * Fix alternate lang tags * prettier * Scope down the change --------- Co-authored-by: Dan Abramov --- src/components/TitleAndMetaTags/TitleAndMetaTags.js | 7 +++++-- src/site-constants.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/TitleAndMetaTags/TitleAndMetaTags.js b/src/components/TitleAndMetaTags/TitleAndMetaTags.js index ab6361a9d..8c351d9c2 100644 --- a/src/components/TitleAndMetaTags/TitleAndMetaTags.js +++ b/src/components/TitleAndMetaTags/TitleAndMetaTags.js @@ -43,7 +43,7 @@ const alternatePages = canonicalUrl => { }; const defaultPage = canonicalUrl => { - return canonicalUrl.replace(urlRoot, 'https://reactjs.org'); + return canonicalUrl.replace(urlRoot, 'https://legacy.reactjs.org'); }; const TitleAndMetaTags = ({ @@ -57,7 +57,10 @@ const TitleAndMetaTags = ({ {canonicalUrl && } - +