I really wish the web had a global navigation event I could cancel. So much router logic is just trying to intercept all nav to do pushState.
@DasSurma @bfgeek @slightlylate
The idea is cross-origin navigation would never trigger the event. Strictly same-origin.
-
-
I don't agree fwiw
-
I think cross origin would be fine if the navigation was initiated by the document itself. You can already capture those by listening on clicks to cross origin links.
- 3 more replies
New conversation -
-
-
If the API is used for the general case of intercepting links, developers would want to know about external links too as it's common to open them in a new window. (Yes can be handled with target blank too, but full control over HTML isn't always practical.)
-
Being able to transition to cross-origin URLs seems nice too
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.