1 year ago

Getting the Laravel 404 page with React Router 4

Posted 1 year ago by p0t4t0

I am using the React preset that comes along with Laravel: php artisan preset react and I seem to be having problems with it concerning routing with React. Every time I specify a /somewhere everything works fine but when I specify one route deeper /somewhere/one-level-deep it gives the 404 page. Anyone have any idea what is wrong? I tried with create-react-app and it works fine.

Please sign in or create an account to participate in this conversation.