Mmistakes local url for the twitter button

Hello,
In _config.html I have:
baseurl: “/faune_flore_meyrin”
url: https://jphconstantin.github.io
repository: “jphconstantin/faune_flore_meyrin”

In github, when I click the twitter button in a post (single.html -> social-share.html), I see the following url:
https://twitter.com/intent/tweet?via=f_f_meyrin&text=Lézard+des+murailles - Podarcis muralis http%3A%2F%2Flocalhost%3A4000%2Ffaune_flore_meyrin/faune/reptiles/vernes/2020/10/09/P1120896.html
I was expecting:
https://jphconstantin.github.io/faune_flore_meyrin… instead of http://localhost:4000/faune_flore_meyrin

Missing parameter(s) from my part ?

Note: I empty the cache before to test …

Possibly you’re not building your site in production mode? Ref below:

JEKYLL_ENV=production jekyll build
1 Like

You are right !!! I didn’t know this option …

1 Like