Fix clicking a status multiple times causing duplicate entries in browser history (#35118)
This commit is contained in:
		@@ -301,7 +301,11 @@ class Status extends ImmutablePureComponent {
 | 
				
			|||||||
    if (newTab) {
 | 
					    if (newTab) {
 | 
				
			||||||
      window.open(path, '_blank', 'noopener');
 | 
					      window.open(path, '_blank', 'noopener');
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      history.push(path);
 | 
					      if (history.location.pathname.replace('/deck/', '/') === path) {
 | 
				
			||||||
 | 
					        history.replace(path);
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        history.push(path);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user