oslc-op/website

Fix Broken Links When Sharing

Closed this issue · 4 comments

When sharing certain resources (News pages, Resources, Working Group pages) on social media, the link being sent to the service is relative instead of being the whole url. This happened when we changed the base URL.

sharinglinks

Some relevant discussion here:
https://discourse.gohugo.io/t/solved-what-should-be-used-for-the-value-of-site-baseurl/5896

As far as I can see, leaving baseURL blank or setting it to "/" will just break some things and there is no way around it.

I'll check, I'm working on this issue now

Why don't we use http://oslc.co as baseURL?

Fixed this by adding the baseurl parameter when running Hugo in the deploy script.

hugo -b http://oslc.co/ -t oslc

Closing.