Fixes: Redirects do not push into history stack
This commit is contained in:
@@ -77,7 +77,7 @@ class DropToImport extends React.Component<Props> {
|
||||
...rest
|
||||
} = this.props;
|
||||
|
||||
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
|
||||
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
|
||||
if (this.props.disabled) return this.props.children;
|
||||
|
||||
return (
|
||||
|
||||
@@ -74,7 +74,7 @@ class Editor extends React.Component<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
|
||||
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
|
||||
|
||||
return (
|
||||
<RichMarkdownEditor
|
||||
|
||||
@@ -81,7 +81,7 @@ class Layout extends React.Component<Props> {
|
||||
const showSidebar = auth.authenticated && user && team;
|
||||
|
||||
if (auth.isSuspended) return <ErrorSuspended />;
|
||||
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
|
||||
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
|
||||
|
||||
return (
|
||||
<Container column auto>
|
||||
|
||||
Reference in New Issue
Block a user