You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior of the navigation API updates the URL and the current history entry immediately when intercepting.
This has been a pain point for early adopters of the API.
This proposal is to make this behavior configurable, allowing the developer using the API to defer the commit behavior and call commit when ready.
We're planning to slightly expand this proposal with one more method: WICG/navigation-api#279 . (It is quite simple in complexity, consisting of a bunch of error-case checks and then updating the destination URL if all those checks pass.)
Activity
bramus commentedon Jan 16, 2025
See WICG/navigation-api#277 for an example of such a struggle.
jpzwarte commentedon Jan 17, 2025
CC'ing @cdumez because he is one of the committers working on the Navigation API in WebKit (based on the PRs being merged)
domenic commentedon Feb 7, 2025
We're planning to slightly expand this proposal with one more method: WICG/navigation-api#279 . (It is quite simple in complexity, consisting of a bunch of error-case checks and then updating the destination URL if all those checks pass.)
annevk commentedon Aug 7, 2025
Colleagues and I suggest marking this as "position: support" one week from now. This seems like a reasonable addition.