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
smaug might also be good for this. In general, sending an event when navigation starts to the same origin as the currently loaded origin doesn't seem like a problem to me. There are issues to sort out wrt named targeting and whatnot, reentrancy, etc, etc.
-
-
Would sending an event for cross origin navigations be a problem?
-
There are issues. Certainly for cross-origin navigations using the browser UI you would not want to expose the URL in the event (something that I expect people want for the pushState use case described above) and you would not want to allow canceling either.
- 8 more replies
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.