ampproject / ampproject/amphtml
[Page attachments][Outlink] Option to get domain favicon
Open
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
Assessment
This issue has not been assessed yet.