Redirect GWT hashed URLs properly in PolyGerrit
Change-Id: Ib2c74cd1d8cf599f75f93813a42d61a3d6d7574f
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user