about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-04-02 03:12:10 +0200
committerGitHub <noreply@github.com>2020-04-02 03:12:10 +0200
commit4bf5aeae833ba4b751cd04d67a0697052a14e0ee (patch)
treec3eb6964088d7fd12b8c68fea257b7743bad77d4 /app
parent47ab0bd3e468af85d5a51af3a04f65bf782a057f (diff)
Fix pinning a column in web UI sometimes redirecting out of web UI (#13376)
Fix #13216
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/components/column_header.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/column_header.js b/app/javascript/mastodon/components/column_header.js
index ea82f9ef9..1bb583583 100644
--- a/app/javascript/mastodon/components/column_header.js
+++ b/app/javascript/mastodon/components/column_header.js
@@ -76,8 +76,9 @@ class ColumnHeader extends React.PureComponent {
 
   handlePin = () => {
     if (!this.props.pinned) {
-      this.historyBack();
+      this.context.router.history.replace('/');
     }
+
     this.props.onPin();
   }