Netlify "page not found" when sharing React-Router-Dom based links

Hi Luke,

I appreciate your through response! Things have been crazy for me so I’m just now getting some time to problem solve.

Using the issue that you pointed out, I successful resolved the problem using two strategies:

  1. I accessed the /public folder via GitHub, deleted the file, and manually added a new _redirects file with the same information.
  2. I added the following after the “build” script within package.json"react-scripts build && echo '/* /index.html 200' | cat >build/_redirects ". This insured that future builds did not receive a .txt format _redirects file.

Thanks so much to the Netlify support and build teams! You guys rock and your product is awesome. Keep it up :+1:

Thanks,
Jay

7 Likes