about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/column_back_button.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/components/column_back_button.js')
-rw-r--r--app/javascript/mastodon/components/column_back_button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/column_back_button.js b/app/javascript/mastodon/components/column_back_button.js
index 3add65968..191c0f597 100644
--- a/app/javascript/mastodon/components/column_back_button.js
+++ b/app/javascript/mastodon/components/column_back_button.js
@@ -9,8 +9,8 @@ class ColumnBackButton extends React.PureComponent {
   };
 
   handleClick = () => {
-    if (window.history && window.history.length === 1) this.context.router.push('/');
-    else this.context.router.goBack();
+    if (window.history && window.history.length === 1) this.context.router.history.push('/');
+    else this.context.router.history.goBack();
   }
 
   render () {