about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/column_back_button_slim.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/components/column_back_button_slim.js')
-rw-r--r--app/javascript/mastodon/components/column_back_button_slim.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/column_back_button_slim.js b/app/javascript/mastodon/components/column_back_button_slim.js
index 2d3f1b57a..ffb05fa02 100644
--- a/app/javascript/mastodon/components/column_back_button_slim.js
+++ b/app/javascript/mastodon/components/column_back_button_slim.js
@@ -9,8 +9,8 @@ class ColumnBackButtonSlim 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 () {