Prerequisites
Version (i.e. v2.x.x)
1.0.1-alpha.209
Node.js version (i.e. 18.x, or N/A)
No response
Operating system
None
Operating system version (i.e. 20.04, 11.3, 10, or N/A)
No response
Description
As per MDN ("The URL has already changed"), the page URL should be already changed when the interception handler is called.
Steps to Reproduce
window.navigation.addEventListener('navigate', ev => {
ev.intercept({
async handler() {
console.log(document.location.pathname)
}
})
})
window.navigation.navigate('/xyz')
Expected Behavior
In Chrome, this logs '/xyz'. With the polyfill, it logs whatever the pathname was before.
Prerequisites
Version (i.e. v2.x.x)
1.0.1-alpha.209
Node.js version (i.e. 18.x, or N/A)
No response
Operating system
None
Operating system version (i.e. 20.04, 11.3, 10, or N/A)
No response
Description
As per MDN ("The URL has already changed"), the page URL should be already changed when the interception handler is called.
Steps to Reproduce
Expected Behavior
In Chrome, this logs '/xyz'. With the polyfill, it logs whatever the pathname was before.