Back to Colophon
Back to Colophon

Link preview tooltips now verify that the URL being...

Link preview tooltips now verify that the URL being previewed actually appears on the referring page, and preview images render through proper DOM construction instead of string...

Link preview tooltips now verify that the URL being previewed actually appears on the referring page, and preview images render through proper DOM construction instead of string injection.

#ux #link-previews #quality

URL validation#

The link preview endpoint would previously fetch metadata for any URL you asked about. Now it checks that the URL actually appears as a link on the referring page before doing anything. Previews only work for links that are genuinely on the page you’re reading.

This keeps the feature doing what it’s supposed to do: showing context for links you’re about to click, not acting as a general-purpose metadata fetcher.

Image rendering#

Preview images (favicons, og:image thumbnails) previously rendered through string concatenation into the tooltip markup. They now go through proper DOM element construction. Same visual result, but the rendering path is cleaner and doesn’t mix data with markup.

Link preview tooltips now verify that the URL being previewed actually appears on the referring page, and preview images render through proper DOM construction instead of string injection.