Make open previous state more robust
[gpl/argeo-suite.git] / org.argeo.suite.e4.rap / src / org / argeo / suite / e4 / rap / ArgeoSuiteLoginLifecycle.java
index 0b2d1527b5577893a2868750ea2d9f480db5a946..f3145c3e7d51a36a35adc3e7d251eeb9d24720ed 100644 (file)
@@ -63,6 +63,7 @@ public class ArgeoSuiteLoginLifecycle extends CmsLoginLifecycle {
                        }
                } catch (RepositoryException | PrivilegedActionException e) {
                        log.error("Cannot load state " + state, e);
+                       getBrowserNavigation().pushState("~", null);
                } finally {
                        JcrUtils.logoutQuietly(session);
                }