ampproject / ampproject/amphtml

[amp story shopping] Back button

Open
#36,731 2 comments 0 reactions 1 assignee Claimed by @processprocess View on GitHub
Component: amp-story-shopping P2: Soon Stale Type: Feature Request WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

A back button displays when there is navigation within the shopping attachment.
This requires a history of navigation within the attachment.
It can appear in PDPs and PLPs.
It disappears when navigating back to the first attachment page that was opened.

Full user flow:
Screen Shot 2021-11-03 at 11 44 52 AM

### Additional Context

Page attachments currently support some [history logic](https://github.com/ampproject/amphtml/blob/main/extensions/amp-story/1.0/amp-story-page-attachment.js#L355).
This logic is within [history-impl](https://github.com/ampproject/amphtml/blob/main/src/service/history-impl.js#L235).

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.