ampproject / ampproject/amphtml
amp-bind: Support title and URL change in AMP.pushState
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
At `history.pushState` we can pass `URL` `history.pushState(stateObj, title, URL);` to change URL in browser without navigating away from page.
Could AMP implement it?
Ex.: In a SPA, an user select Tweets tab, and url change to `/tweets`, then select Agenda and url change to `/agenda`.

Contributor guide
Research direction
Start by tracing the amp-bind implementation of AMP.pushState and compare its behavior with the browser history.pushState(stateObj, title, URL) API described in the issue. Done means selecting SPA tabs can update the document title and browser URL, such as /tweets and /agenda, without navigating away from the page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100