Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Facebook Sharing Link in posts is not a valid URL #641

Closed
lukalafaye opened this issue Aug 14, 2018 · 6 comments
Closed

BUG: Facebook Sharing Link in posts is not a valid URL #641

lukalafaye opened this issue Aug 14, 2018 · 6 comments

Comments

@lukalafaye
Copy link

I enabled social sharing buttons in my posts and realised that the Facebook one gave an error.

# Enable native social sharing buttons?
sharing = true

For instance, if you look at this post: https://www.hackdown.me/post/lucky-patcher/
when clicking on Facebook icon, you are redirected to this page: https://www.facebook.com/sharer.php?u=%2fpost%2flucky-patcher%2f and you get an invalid URL error.

@gcushen
Copy link
Collaborator

gcushen commented Aug 14, 2018

I cannot reproduce this behaviour and the sharing feature works fine in the demo website. Please provide a link to your code repository or consider posting on the support forums.

@sstoeckl
Copy link

For me that happened when I used "serve_site" and then copied the public directory to my server (also, draft=TRUE didn't work). Ever since I correctly build my site (now using netlify but also at home) the links are correctly working (what you see is only the relative path, not the absolute one).

@lukalafaye
Copy link
Author

I build my site with hugo and updated the theme, the link is still giving an error

@sstoeckl
Copy link

I am using blogdown and the difference lies between serve_site and build_site (hugo_build): https://bookdown.org/yihui/blogdown/local-preview.html. Also check the footnote 46 on the same site.

@gcushen
Copy link
Collaborator

gcushen commented Aug 18, 2018

Also, check that your baseurl at the top of config.toml defines the full URL of your website.

I'm closing this as it's not a bug. If you need any further assistance, please use the support forums.

@gcushen gcushen closed this as completed Aug 18, 2018
@lukalafaye
Copy link
Author

I changed baseurl at the top of config.toml to my domain's URL (instead of /) and now works perfectly! Thanks for helping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants