diff --git a/packages/strapi-helper-plugin/lib/src/components/NotFound/index.js b/packages/strapi-helper-plugin/lib/src/components/NotFound/index.js index dce197057a..28067a9161 100644 --- a/packages/strapi-helper-plugin/lib/src/components/NotFound/index.js +++ b/packages/strapi-helper-plugin/lib/src/components/NotFound/index.js @@ -17,7 +17,7 @@ function NotFound({ history }) { onClick={e => { e.stopPropagation(); - history.goBack(); + history.push('/'); }} /> @@ -26,7 +26,7 @@ function NotFound({ history }) { NotFound.propTypes = { history: PropTypes.shape({ - goBack: PropTypes.func, + push: PropTypes.func, }).isRequired, };