There's no way to prevent navigation to a "hash" in a browser (there's no 
equivalent to onbeforeunload for onhashchange; there isn't for 
pushState/onpopstate either) so if you navigated using History.newItem() or 
your browser's history, there's no way you can prevent the URL to change.

You should code your app using PlaceController.goTo() for navigation (which 
means replacing all your Hyperlinks, if any, with Anchors+ClickHandlers), 
which will then call History.newItem() (and thus update the URL) only if 
the navigation is not cancelled by the user.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Y1vviOenKbUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to