-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React app with React-Router deployed on Amplify Console, redirects to index.html #430
Comments
Hi @ilyador , did you try
or change source to: |
@ilyador Did you have a sample app we could test? Did you set anything we need to pay attention? |
@Joycehao19 This is weird: I have one app that works fine, and another that doesn't with the same stack (react + react-router) and same settings. |
@Joycehao19 I think I know what went wrong: for some reason, my domain is no longer managed by the Amplify console. |
#454 |
how did you resolve? |
Even I have very same issue, trying to connect to amplify public url but not working as expected. When routes match then a blank page is rendered(which is not expected but when route doesn't match then I get error page as expected. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Whenever I open the app from the root URL and navigate, all is fine.
However, if I go directly to, or refresh
app.com/login
or any other non-root URL, I get redirected to the non-existentindex.html
.I have tried the solutions from this issue, but nothing seems to work aws-amplify/amplify-js#2498
I did not configure any other routing or URL related things in my app (there is a comment about Vue saying there is sime configuration to be done before deployment, I haven't found anything similar about react and
react-create-app
scaffolding).The text was updated successfully, but these errors were encountered: