Skip to content

✨amp-next-page v2 history manipulation#25971

Merged
wassgha merged 7 commits intoampproject:masterfrom
wassgha:amp-next-page-v2-history
Dec 17, 2019
Merged

✨amp-next-page v2 history manipulation#25971
wassgha merged 7 commits intoampproject:masterfrom
wassgha:amp-next-page-v2-history

Conversation

@wassgha
Copy link
Copy Markdown
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
@amp-owners-bot amp-owners-bot bot requested a review from cathyxz December 11, 2019 18:39
@wassgha wassgha force-pushed the amp-next-page-v2-history branch from 7c1e4ee to 37fe3f0 Compare December 12, 2019 18:23
@wassgha wassgha requested review from caroqliu and sparhami and removed request for cathyxz December 13, 2019 17:33
@wassgha wassgha force-pushed the amp-next-page-v2-history branch from be24cae to 1a2eaf4 Compare December 16, 2019 23:42
@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