diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-04-02 03:12:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 03:12:10 +0200 |
commit | 4bf5aeae833ba4b751cd04d67a0697052a14e0ee (patch) | |
tree | c3eb6964088d7fd12b8c68fea257b7743bad77d4 /app/javascript | |
parent | 47ab0bd3e468af85d5a51af3a04f65bf782a057f (diff) |
Fix pinning a column in web UI sometimes redirecting out of web UI (#13376)
Fix #13216
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/components/column_header.js | 3 |
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(); } |