reduction-admin / react-reduction

React Reduction - Free Admin Template Built with React and Bootstrap4
https://reduction-admin.github.io/react-reduction/
MIT License
1.51k stars 562 forks source link

Unable to catch all unregistered route without main layout #53

Open rainierio opened 4 years ago

rainierio commented 4 years ago

Hi, Thanks for making this beautiful template, And hopefully you guys still keep this project alive. My current issue is I am unable to catch all unregistered react-router path to handling 404 page. The React.suspense always include the when rendering the 404 page which will show the navbar and sidebar.

I have tried to use the with path='*' and it successfully renders the 404 page without , but it will always go to the 404 page even when we access the registered Route path.

Thanks for your response