mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 05:51:37 +01:00
Merge pull request #660 from marrus-sh/mastodon-smart-back-button
#467 – Making the back button a little smarter
This commit is contained in:
commit
0924eee81b
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ const ColumnBackButton = React.createClass({
|
|||
mixins: [PureRenderMixin],
|
||||
|
||||
handleClick () {
|
||||
this.context.router.goBack();
|
||||
if (window.history && window.history.length == 1) this.context.router.push("/");
|
||||
else this.context.router.goBack();
|
||||
},
|
||||
|
||||
render () {
|
||||
|
|
Loading…
Reference in a new issue