I'm working with a gwt multipage project which I used these code to switch between html pages, for this case switching from index.html to signup.html page:
public static native void fireChangePage(String url)/*-{
$wnd.location.href = url;
}-*/;
public void goToSignUpPage(boolean isDeployed) {
String url = (isDeployed == true ? "signup.html" : "signup.html?gwt.codesvr=127.0.0.1:9997");
fireChangePage(url);
}
I'm getting error 404 when fireChangePage is called from the EntryPoint for the index.html.
Manually changing the url on the browser say: index.html?gwt.codesvr=127.0.0.1:9997 to signup.html?gwt.codesvr=127.0.0.1:9997 works, so I can say that the problem is with the native function fireChangePage.
What could be the problem with the native function? Or is there a better approach than this?