ampproject / ampproject/amphtml

[Page attachments] [Outlink] Anchor link for bot rendering.

Open
#34,015 1 comment 0 reactions 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

The CTA is now an anchor element so the `remote-content` element does not need to be:
https://github.com/ampproject/amphtml/blob/2f6158b665b180194eb0b85e151319e2b4eaad8d/extensions/amp-story/1.0/amp-story-page-attachment.js#L210-L214

This was originally done for bot rendering when the CTA was not an anchor element.

When converting this to a div we will need to confirm that bots will be able to crawl the anchor link on the CTA button.

Currently the CTA button is not rendered in vertical mode.
We might need to render the outlink CTAs to be sure they are crawled by bots.
Screen Shot 2021-04-26 at 1 48 23 PM

Instructions to set up a custom device in chrome devtools for debugging bot rendering:
![unnamed](https://user-images.githubusercontent.com/3860311/116141167-5376ab00-a6a6-11eb-9eef-4ebafc89c944.png)

User agent string:
`Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)`

@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.