Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[amp-story-player] Transitioning from one story to another affects the top page's history #31431

Closed
pshihn opened this issue Dec 4, 2020 · 1 comment

Comments

@pshihn
Copy link

pshihn commented Dec 4, 2020

When the player transitions from one story to another, it adds a record to the top page's history. Causing the 'back' button to not work until n+1 clicks, where n is the number of story transitions.

This is because iframes affect the browser history. This could be avoided if inside the iframe, the location is changed using location.replace()

This seems really bad for UX on a page that uses the amp-story-player.

@gmajoulet
Copy link
Contributor

Tracked here: #31010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants