How to redirect to gwt client?

I want to redirect to another page when I log in, but don’t know how to do it. I was looking for stackoverflow, How to redirect a GWT application from the client side? but this solution seems to be inoperative.

Who has experience? Thanks

+3
source share
4 answers

I suggest making a login without GWT. Thus, the browser may offer to remember the password for the user. If the login was successful, redirect the user to the URL of the GWT homepage.

+3
source

Window.Location.replace(newURL)

+17
source

Window.Location.assign("your url with parameter if needed"); 
+4

JSNI:

    public static native void redirect(String url)/*-{
        $wnd.location = url;
    }-*/;
-1

Source: https://habr.com/ru/post/1775809/


All Articles