Fixes: Redirects do not push into history stack

This commit is contained in:
Tom Moor
2019-01-26 13:01:33 +00:00
parent 1768a1921d
commit 0ce50781d7
11 changed files with 11 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ class AccountMenu extends React.Component<Props> {
};
render() {
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
return (
<DropdownMenu

View File

@@ -90,7 +90,7 @@ class CollectionMenu extends React.Component<Props> {
};
render() {
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
const { collection, label, onOpen, onClose } = this.props;

View File

@@ -82,7 +82,7 @@ class DocumentMenu extends React.Component<Props> {
};
render() {
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
const { document, label, className, showPrint, auth } = this.props;
const canShareDocuments = auth.team && auth.team.sharing;

View File

@@ -34,7 +34,7 @@ class NewChildDocumentMenu extends React.Component<Props> {
};
render() {
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
const { label, document, ...rest } = this.props;
const { collection } = document;

View File

@@ -35,7 +35,7 @@ class NewDocumentMenu extends React.Component<Props> {
};
render() {
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
const { collections, label, ...rest } = this.props;

View File

@@ -44,7 +44,7 @@ class ShareMenu extends React.Component<Props> {
};
render() {
if (this.redirectTo) return <Redirect to={this.redirectTo} />;
if (this.redirectTo) return <Redirect to={this.redirectTo} push />;
const { share, label, onOpen, onClose } = this.props;