Manually typing URL paramets

I do not if this is default behavior. But I have a react app, and everything works as expected, except if the user manually types URL parameters in the browser. I have my app setup so that when a user types a URL parameter that does not exists, it renders a page not found component(not a redirect). But right not, any parameter that is manually typed brings be to the default notify page not found page

What website are we talking about?

The website is https://allspacexinfo.netlify.app/
If I manually go to https://allspacexinfo.netlify.app/vehicles/falcon9 it doesn’t work, but if I go through the links in the website itself, it works perfectly.

These are not URL parameters. Parameters look like /?q=abc. In any case, this is a common problem with React on Netlify and the forums have answered this question many times.

The solution is to add a _redirects file with the content: /* /index.html 200.

1 Like