The window.appHistory API provides the ability to intercept navigations as well as introspect an application's history entries. This provides a more useful alternative to window.history, specifically aimed at the needs of single-page web applications.
The existing window.history API is hard to deal with in practice, especially for single-page applications. In the best case, developers can work around this with various hacks. In the worst case, it causes user-facing pain in the form of lost state and broken back buttons, or the inability to achieve the desired navigation flow for a web app.
Specification being incubated in a Community Group
Status in Chromium
Consensus & Standardization
Intent to Prototype urlIntent to Prototype thread
Search tagsapphistory, history,
Last updated on 2021-11-25