Provide absolute URL to project avatar in meta tags
Problem
The og:image
and twitter:image
meta tags do not contain absolute URLs to the project avatar causing broken image previews.
Example from https://gitlab.com/jeanduplessis/seo-improvement
<meta content="/uploads/-/system/project/avatar/15438784/Screen_Shot_2019-11-20_at_12.59.40.png" property="og:image">
<meta content="/uploads/-/system/project/avatar/15438784/Screen_Shot_2019-11-20_at_12.59.40.png" property="twitter:image">
Job to be done
- Ensure that the value passed to the
og:image
andtwitter:image
meta tags include the host domain of the GitLab instance.