ampproject / ampproject/amphtml
[amp story shopping] Back button
Open
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:

### 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
Assessment
This issue has not been assessed yet.