diff --git a/src/components/MarkdownPage/MarkdownPage.js b/src/components/MarkdownPage/MarkdownPage.js index 9214552b..4e4e082f 100644 --- a/src/components/MarkdownPage/MarkdownPage.js +++ b/src/components/MarkdownPage/MarkdownPage.js @@ -15,7 +15,7 @@ import TitleAndMetaTags from 'components/TitleAndMetaTags'; import findSectionForPath from 'utils/findSectionForPath'; import toCommaSeparatedList from 'utils/toCommaSeparatedList'; import {sharedStyles} from 'theme'; -import createOgUrl from 'utils/createOgUrl'; +import createCanonicalUrl from 'utils/createCanonicalUrl'; import type {Node} from 'types'; @@ -74,7 +74,7 @@ const MarkdownPage = ({ }}>
diff --git a/src/components/TitleAndMetaTags/TitleAndMetaTags.js b/src/components/TitleAndMetaTags/TitleAndMetaTags.js index 37dc325b..3310e01e 100644 --- a/src/components/TitleAndMetaTags/TitleAndMetaTags.js +++ b/src/components/TitleAndMetaTags/TitleAndMetaTags.js @@ -13,21 +13,22 @@ const defaultDescription = 'A JavaScript library for building user interfaces'; type Props = { title: string, ogDescription: string, - ogUrl: string, + canonicalUrl: string, }; -const TitleAndMetaTags = ({title, ogDescription, ogUrl}: Props) => { +const TitleAndMetaTags = ({title, ogDescription, canonicalUrl}: Props) => { return ( - {ogUrl && } + {canonicalUrl && } + {canonicalUrl && } ); }; diff --git a/src/pages/acknowledgements.html.js b/src/pages/acknowledgements.html.js index 513aea22..7a67b4c2 100644 --- a/src/pages/acknowledgements.html.js +++ b/src/pages/acknowledgements.html.js @@ -21,7 +21,7 @@ const Acknowlegements = ({data, location}) => (
Acknowledgements
diff --git a/src/pages/blog/all.html.js b/src/pages/blog/all.html.js index 2e029539..35734b5b 100644 --- a/src/pages/blog/all.html.js +++ b/src/pages/blog/all.html.js @@ -30,7 +30,7 @@ const AllBlogPosts = ({data, location}: Props) => (
All Posts
    (
    Languages
    - +

    diff --git a/src/pages/versions.js b/src/pages/versions.js index 2dd95976..c4e3532b 100644 --- a/src/pages/versions.js +++ b/src/pages/versions.js @@ -10,6 +10,7 @@ import Container from 'components/Container'; import Header from 'components/Header'; import TitleAndMetaTags from 'components/TitleAndMetaTags'; import React from 'react'; +import {urlRoot} from 'site-constants'; import {sharedStyles} from 'theme'; // $FlowFixMe This is a valid path @@ -25,7 +26,10 @@ const Versions = ({location}: Props) => (

    React Versions
    - +

    A complete release history for React is available{' '} diff --git a/src/utils/createOgUrl.js b/src/utils/createCanonicalUrl.js similarity index 100% rename from src/utils/createOgUrl.js rename to src/utils/createCanonicalUrl.js