React router links to absolute paths

时间:2017-08-04 12:30:49

标签: javascript reactjs react-router create-react-app

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?

0 个答案:

没有答案