I understand that this is only partly an issue of Netlify, though it should be at least somehow made clear in the documentation that core functionality of Hugo does not work as intended.
More specifically, Hugo has several built-in partials / templates, used to generate the respective meta tags for OGraph, Twitter etc. These of course require an absolute URL (.Permalink in Hugo terminology) for the simple purpose that parsers by Facebook and Twitter do not understand relative URLs. Of course the same issue applies in the generation of share links (unless one resorts to JavaScript).
Hi @fool, thanks for taking the time to look into this. It doesn’t seem prerendering fits this case; isn’t it intended for single-page sites?
I’d previously disabled the share links (which have a full URL) but you can see them in effect here: https://www.alphapivita.gr/contact/ where the netlify URl is exposed.
I have set HUGO_BASEURL https://www.alphapivita.gr/ but doesn’t seem to have any effect.