Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Social share adds "undefined" to the shareable link #73

Open
peterdoherty01 opened this issue Jan 8, 2019 · 1 comment · May be fixed by #95
Open

Social share adds "undefined" to the shareable link #73

peterdoherty01 opened this issue Jan 8, 2019 · 1 comment · May be fixed by #95

Comments

@peterdoherty01
Copy link

Hi Greg,

Nice template!

I notice when I click share, "undefined" appears in the link.

I looked at the plugin used: react-share but couldn't see where the missing definition is.

Could you advise please?

Thanks

@horcrux2301
Copy link

horcrux2301 commented May 29, 2019

I fixed it src/components/Post/Share.js. Just update

const url = config.siteUrl + config.pathPrefix + slug;

with

const url = config.siteUrl + slug;

@esandez93 esandez93 linked a pull request Oct 8, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants