Merge pull request #95 from vzhou842/disqus-url-prop

Fixed url prop bug for <ReactDisqusComments />
This commit is contained in:
Alexander Shelepenok
2019-03-03 23:11:38 +03:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import ReactDisqusComments from 'react-disqus-comments';
export const PureComments = ({ data, postTitle, postSlug }) => {
const {
siteUrl,
url,
disqusShortname
} = data.site.siteMetadata;
@@ -17,7 +17,7 @@ export const PureComments = ({ data, postTitle, postSlug }) => {
shortname={disqusShortname}
identifier={postTitle}
title={postTitle}
url={siteUrl + postSlug}
url={url + postSlug}
/>
);
};