From fa17075caaa2240aab1ab50b1114d9eb4144be26 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Fri, 6 Oct 2017 14:36:37 +0300 Subject: [PATCH] Allow passing in canonical path --- src/components/Page/Page.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Page/Page.js b/src/components/Page/Page.js index 3c35371a..f591e514 100644 --- a/src/components/Page/Page.js +++ b/src/components/Page/Page.js @@ -59,6 +59,7 @@ class PageComponent extends Component { title, twitterHandle, twitterImages, + canonicalPath, updated, } = this.props; @@ -129,7 +130,7 @@ class PageComponent extends Component { }} > {title} - + {metaTags} @@ -170,6 +171,7 @@ PageComponent.defaultProps = { description: null, facebookImages: null, twitterImages: null, + canonicalPath: null, published: null, schema: null, tags: null, @@ -209,6 +211,7 @@ PageComponent.propTypes = { title: string.isRequired, // page title twitterHandle: string, // twitter handle updated: string, // article:modified_time + canonicalPath: string, // link rel=canonical // from withRouter history: shape({