ampproject / ampproject/amphtml

[Page attachments][Outlink] Option to get domain favicon

Open
#34,177 5 comments 1 reaction 1 assignee Claimed by @processprocess View on GitHub
P1: High Priority Stale Type: Feature Request WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

A service can be used to fetch the outlink domain's favicon.
This could be a value for `cta-image` like `cta-image="favicon"`

If the domain does not have a favicon configured, this could fallback to the default link icon.

[prototype](https://discovery-ec239.web.app/examples/amp-story/attachment.html?faviconURL=www.twitter.com)
Replace the `faviconURL` param with any domain to preview the feature.

Concept approved by @hongcatlover

@ampproject/wg-stories

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.