rafaelmardojai / share-preview

Test social media cards locally
GNU General Public License v3.0
101 stars 16 forks source link

Warn users using relative URLs on Twitter #64

Closed TheEvilSkeleton closed 8 months ago

TheEvilSkeleton commented 1 year ago

Share Preview seems to display images with relative URLs, although Twitter does not support this.

Notice that the image isn't shown.

On Share Preview, it looks like this:

Where it shows the image.


As a solution, I'd make it warn the user when the website is using relative path, rather than a URL.

rafaelmardojai commented 1 year ago

The app has a mechanism to warn about unsupported formats but Twitter is set to support WebP since that is what is documented, so the issue might be somewhere else.

Checking Twitter docs again, it seems to say that urls can't be relative. Share Preview will convert all relative urls to absolute ones without further handling so that can be the problem.

TheEvilSkeleton commented 1 year ago

Thanks. I changed the title and description to reflect that