I deployed my React website build/ folder into an AWS S3 bucket.
If I go to www.mywebsite.com, it works and if I click on a ta
I fixed it by using HashRouter instead of Router
import { Switch, Route, HashRouter } from 'react-router-dom';
const App = () => (
);
The app is acceccible by something like
https://your-domain.s3.amazonaws.com/index.html?someParam=foo&otherPram=bar/#/projects
on localhost like
https://localhost:3000/?someParam=foo&otherPram=bar/#/projects
No changes in S3 were needed.