From 5811ccc6117ed3a506c0b4e36acda5cd42315a7d Mon Sep 17 00:00:00 2001 From: "S.H" Date: Fri, 5 May 2023 22:13:28 +0900 Subject: [PATCH] Fix column back button error (#24867) --- app/javascript/mastodon/components/column_back_button.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/column_back_button.jsx b/app/javascript/mastodon/components/column_back_button.jsx index 5499be242..faa800b2a 100644 --- a/app/javascript/mastodon/components/column_back_button.jsx +++ b/app/javascript/mastodon/components/column_back_button.jsx @@ -23,7 +23,7 @@ export default class ColumnBackButton extends React.PureComponent { onClick(); // Check if there is a previous page in the app to go back to per https://stackoverflow.com/a/70532858/9703201 // When upgrading to V6, check `location.key !== 'default'` instead per https://github.com/remix-run/history/blob/main/docs/api-reference.md#location - } else if (router.location.key) { + } else if (router.route.location.key) { router.history.goBack(); } else { router.history.push('/');