This was the easiest solution I found:
First, use a JSNI call in your main entry class:
private static native void redirectToUrl(String prefix) /*-{
$wnd.location = prefix + “/index.jsp?logoff=true”;
}-*/;
… Read More