Add below code in your EntryPoint
class
private static Map<String, String> queryParams = new HashMap<String, String>();
static {
Map<String, List<String>> paramsMap = Window.Location.getParameterMap();
for (String key : paramsMap.keySet()) {
List<String> values = paramsMap.get(key);
if (values.size() > 0) {
String value = values.get(0);
queryParams.put(key.toLowerCase(), value);
queryParams.put(key, value);
}
}
}
I dont have &id=foo in the url, how to add it in the URL?
How to get the host page base URL?
GWT.getHostPageBaseURL(); //http://127.0.0.1:8888/