Skip to content

Commit

Permalink
Fix pathPrefix breaking SocialLinks. Fix #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagr9K committed Feb 18, 2018
1 parent e8ed51e commit 3e5d799
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SocialLinks/SocialLinks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class SocialLinks extends Component {
render() {
const { postNode, postPath, mobile } = this.props;
const post = postNode.frontmatter;
const url = config.siteUrl + config.pathPrefix + postPath;
const realPrefix = config.pathPrefix === "/" ? "" : config.pathPrefix;
const url = config.siteUrl + realPrefix + postPath;

const iconSize = mobile ? 36 : 48;
const filter = count => (count > 0 ? count : "");
Expand Down

0 comments on commit 3e5d799

Please sign in to comment.