From: Eugen Rochko Date: Thu, 2 Apr 2020 01:12:10 +0000 (+0200) Subject: Fix pinning a column in web UI sometimes redirecting out of web UI (#13376) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=4bf5aeae833ba4b751cd04d67a0697052a14e0ee;p=mastodon.git Fix pinning a column in web UI sometimes redirecting out of web UI (#13376) Fix #13216 --- 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(); }