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-next-page v2 history manipulation #25971

Merged
merged 7 commits into from
Dec 17, 2019

Conversation

wassgha
Copy link
Contributor

@wassgha wassgha commented Dec 11, 2019

Closes #25553

Changes

  • Allows amp-next-page v2 to change the title and url of the document based on the currently visible page
  • Compared to amp-next-page v1, this adds an extra entry in the history so that the currently visible sub-page is given its own history entry (the user is now able to go back to the original page in history where as previously they could only go back to the last sub-page and information about the initial page is lost).
  • Changes the logic to include the host document in the pages array
  • Renames and refactoring

@wassgha wassgha marked this pull request as ready for review December 11, 2019 18:39
@wassgha wassgha requested review from sparhami and caroqliu and removed request for cathyxz December 13, 2019 17:33
extensions/amp-next-page/0.2/page.js Outdated Show resolved Hide resolved
extensions/amp-next-page/0.2/page.js Outdated Show resolved Hide resolved
extensions/amp-next-page/0.2/page.js Outdated Show resolved Hide resolved
extensions/amp-next-page/0.2/service.js Show resolved Hide resolved
extensions/amp-next-page/0.2/service.js Outdated Show resolved Hide resolved
extensions/amp-next-page/0.2/service.js Outdated Show resolved Hide resolved
extensions/amp-next-page/0.2/service.js Outdated Show resolved Hide resolved
extensions/amp-next-page/0.2/service.js Outdated Show resolved Hide resolved
@wassgha wassgha merged commit 6278ede into ampproject:master Dec 17, 2019
@wassgha wassgha deleted the amp-next-page-v2-history branch December 17, 2019 00:31
micajuine-ho pushed a commit to micajuine-ho/amphtml that referenced this pull request Dec 27, 2019
* Added intial implementation of history manipulation on amp-next-page v2

* Added ability to go back to the initial page and fixed logic

* Fixes type checks and adds og:image ot the initial page

* Feedback from review

* Switched to using an object instead of params in page.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[amp-next-page-v2] History manipulation
3 participants