From 4bf5aeae833ba4b751cd04d67a0697052a14e0ee Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 2 Apr 2020 03:12:10 +0200 Subject: [PATCH] Fix pinning a column in web UI sometimes redirecting out of web UI (#13376) Fix #13216 --- app/javascript/mastodon/components/column_header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }