浏览代码

Fix pinning a column in web UI sometimes redirecting out of web UI (#13376)

Fix #13216
Eugen Rochko 4 年之前
父节点
当前提交
4bf5aeae83
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/javascript/mastodon/components/column_header.js

+ 2 - 1
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();
   }