Monday, October 19, 2020

Re: GWT history with push state

JSNI is deprecated, you can use the browser state API with pushState.
You can also check domino-history which a lightweight wrapper around the pushState.

On Friday, October 16, 2020 at 7:40:39 AM UTC+3 Craig Mitchell wrote:
As Tomas said, not directly with History.  It's simple JSNI though:

public static native void updateURL(String newUrl) /*-{
    $wnd.history.pushState(newUrl, "", newUrl);

public static native void initialise() /*-{
$wnd.onpopstate = $entry(function(e) {

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment