Issues

Social: Relative X Card Image URL

back to issues overview

Relative X Card Image URL

Pages that have a twitter:image specified that is a relative URL, rather than an absolute URL.

Relative URLs can be ignored by social media platforms. The twitter:image URL must be an absolute URL.

Relative URLs, protocol-relative URLs, and data URIs are often not supported.

How to Analyse in the SEO Spider

View URLs with this issue in the ‘Social’ tab and ‘Relative X Cards Image URL’ filter, and export all URLs using the ‘Export’ button.

What Triggers This Issue

This issue is triggered when the twitter:image URL is relative, rather than absolute.

Example:

<!DOCTYPE html>
<html>
<head>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@yoursite"/>
<meta name="twitter:creator" content="@author"/>
<meta name="twitter:title" content="Your headline"/>
<meta name="twitter:description" content="Your exciting description."/>
<meta name="twitter:image" content="/image.jpg"/>
</head>
<body>
...
</body>
</html>

The twitter:image URL is relative /image.jpg when it should be absolute https://example.com/image.jpg.

How To Fix

Ensure that the URL specified in twitter:image uses an absolute URL so it can be used by X.

Back to top