Shift+click on column Back button to return to last pinable column
This commit is contained in:
@ -24,7 +24,9 @@ export default class Permalink extends React.PureComponent {
|
||||
|
||||
if (this.context.router) {
|
||||
e.preventDefault();
|
||||
this.context.router.history.push(this.props.to);
|
||||
let state = {...this.context.router.history.location.state};
|
||||
state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;
|
||||
this.context.router.history.push(this.props.to, state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user