I'm currently deploying my webapp on Amazon S3 static website (my index.html and bundle.js). Using DNS I have redirected a specific domain to my application and now who ever wants to access my application will access it from https://example.com/app/index.html (notice the pathname app) Whenever someone gets the assets the URL is changed to https://example.com/login. The app pathname drops because React router links the routes with absolute paths.
Any suggestions how to handle this?