RESOLVED FIXED Bug 206382
Ensure full URLs for relative path images for social meta data
https://bugs.webkit.org/show_bug.cgi?id=206382
Summary Ensure full URLs for relative path images for social meta data
Jon Davis
Reported 2020-01-16 15:57:38 PST
Posts and pages that specify relative paths for images will not be properly propagated in open graph meta data.
Attachments
Patch (1.41 KB, patch)
2020-01-16 16:02 PST, Jon Davis
no flags
Patch (1.27 KB, patch)
2020-01-16 16:42 PST, Jon Davis
no flags
Jon Davis
Comment 1 2020-01-16 16:02:18 PST
Devin Rousso
Comment 2 2020-01-16 16:33:04 PST
Comment on attachment 387976 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=387976&action=review r=me, with a few comments > Websites/webkit.org/wp-content/plugins/social-meta.php:84 > + if ($image_url[0] === '/') Should we move this logic to the end of the initial `<?php` block at the top of this file? That way, if HTML tags are added for other social platforms above this, they won't "miss" this logic. > Websites/webkit.org/wp-content/plugins/social-meta.php:85 > + $image_url = get_home_url(null,$image_url); Style: should have space between `null, $image_url`.
Jon Davis
Comment 3 2020-01-16 16:42:38 PST
WebKit Commit Bot
Comment 4 2020-01-16 17:30:10 PST
Comment on attachment 387986 [details] Patch Clearing flags on attachment: 387986 Committed r254731: <https://trac.webkit.org/changeset/254731>
WebKit Commit Bot
Comment 5 2020-01-16 17:30:11 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2020-01-16 17:31:28 PST
Note You need to log in before you can comment on or make changes to this bug.