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-document-recommendations: Update local document title/history path when appending new document #14218

Merged

Conversation

peterjosling
Copy link
Contributor

  • Updates local document.title and URL (with replaceState) when appending a new document in amp-content-recommendations. Both required for use outside of a viewer.
  • Viewer integration will require changes to the viewer history API to support updating the path (currently only the hash can be changed).

Passes through the return value from MultiDocManager#attachShadowDoc. Object contains the document title.
Only updates title locally, not in the viewer
Viewer history API will need updating to support updating the path in the viewer
@peterjosling peterjosling force-pushed the document-recommendations-title branch from 9e2fe41 to 11a43cc Compare March 28, 2018 13:11
@peterjosling
Copy link
Contributor Author

@aghassemi

@aghassemi aghassemi self-requested a review March 28, 2018 20:13
@aghassemi aghassemi merged commit 773a0e9 into ampproject:master Mar 28, 2018
@peterjosling peterjosling deleted the document-recommendations-title branch March 29, 2018 09:59
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.

None yet

3 participants