comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java @ 4216:a04862abce42

Don't redirect to the login page without query params Don't redirect to the login page without query params for the development mode. Therefore just reload the page after the user object is removed from the session and GGInAFilter will redirect to the correct long URL.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 23 Oct 2012 10:50:48 +0200
parents c179cd02177d
children 9d7497f5be05
comparison
equal deleted inserted replaced
4215:c179cd02177d 4216:a04862abce42
97 userService.logoutCurrentUser(new AsyncCallback<Void>() { 97 userService.logoutCurrentUser(new AsyncCallback<Void>() {
98 public void onFailure(Throwable caught) { 98 public void onFailure(Throwable caught) {
99 } 99 }
100 100
101 public void onSuccess(Void result) { 101 public void onSuccess(Void result) {
102 Window.Location.replace("/login.jsp"); 102 /* Just reload the page. GGInAFilter is goint to redirect
103 * to the correct login page */
104 Window.Location.reload();
103 } 105 }
104 }); 106 });
105 107
106 } 108 }
107 }); 109 });

http://dive4elements.wald.intevation.org