Redirect GWT hashed URLs properly in PolyGerrit

Change-Id: Ib2c74cd1d8cf599f75f93813a42d61a3d6d7574f
This commit is contained in:
Andrew Bonventre
2016-01-07 13:35:03 -05:00
parent d9141ef46a
commit 516069a153

View File

@@ -32,7 +32,12 @@ window.addEventListener('WebComponentsReady', function() {
}
// Routes.
page('/', loadUser, function() {
page('/', loadUser, function(data) {
// For backward compatibility with GWT links.
if (data.hash != null) {
page.redirect(data.hash);
return;
}
if (app.loggedIn) {
page.redirect('/dashboard/self');
} else {