]> cat aescling's git repositories - mastodon.git/commitdiff
Fix pinning a column in web UI sometimes redirecting out of web UI (#13376)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 2 Apr 2020 01:12:10 +0000 (03:12 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 01:12:10 +0000 (03:12 +0200)
Fix #13216

app/javascript/mastodon/components/column_header.js

index ea82f9ef9d3fe32be17f6bb888dd78bb71a9c46a..1bb583583a35585e105a1547be383a1a9264ee80 100644 (file)
@@ -76,8 +76,9 @@ class ColumnHeader extends React.PureComponent {
 
   handlePin = () => {
     if (!this.props.pinned) {
-      this.historyBack();
+      this.context.router.history.replace('/');
     }
+
     this.props.onPin();
   }