So you made a Single Page Application and It’s working great on localhost npm or yarn server. And now you made a build of this site and deploy it t...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for this, Rajesh! You definitely put me on the right track. I found the _redirects file didn't seem to like working with my netlify.toml, which I was already using to redirect API calls to my backend. I found this sample code to add to my netlify.toml file in the Netlify documentation:
[COMMENT] The following redirect is intended for use with most SPAs that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Link to documentation here: docs.netlify.com/configure-builds/...
Tip: scroll through the sample file that is provided or use find on your browser as it is kind of lost in a sea of other sample code.
Thanks @mellim
This detailed comment is definitely going to help somebody.
this did work for me when i deployed it on Netlify platform, but failed to work when deployed the same static site on Render platform. Can you explain, how to solve the issue while deploying on render platform
I never worked with this platform before.
This was my solution. Thanks a lot, Mel!
I tried this and still did not work
Maybe you missed any config or having some other issue with project. please provide more information so people from comments can also help. Thanks.
For me too.
Thanks thats saved me haha
you're welcome 😀
Thanks! Worked awesome.
I had missed the note to add
_redirectstopublic/folder. Fixed and good!Thank you so much for this fix. This is a really useful tip.
Thanks man :)
you're welcome 😀
I had the same issue and it worked for me. Thank you man!
Thank you! That was what I needed.
Thank you. Simple & effective
life saver!, thanks for this, i spent days researching this issue and was about to give up
Wow! Thanks a lot man!
This is very helpful, thank you!
Thanks a lot, man!
very helpful
Thanks 🙏
Hey, Rajesh! You helped me a lot! Thank you very much!
You are a life saver!!! Thanks from the bottom of my heart <3
Your welcome sir 😉
You are doing god's work
heheheh 😄
thanks a lot man
this worked for me! thank you :-)
You are a live saver my man
You saved me!! Thank you so much!!!
Arigato !!
It works. Thanks!
Thanks man <3
You are awesome, thanks!!!
I have on question though, will I have the same problem if I deploy my app to another hosting provider?
Or is it a strictly netlify issue??
depends on the configuration of that host, please read their documentation related to routing.
Thanks man 🙏🙏🙏
You are the best!
That worked!, Thanks a lot man
It's working! Thanks Rajesh.
Thank you very much Rajesh ⭐
thanks Rajesh, perfect answer
thanks
It worked! Thanks, really good explanation.
Thanks man!
I have been looking everywhere for a solution thank you!
Thanks for this concise solution. It saved me quite a lot of time!
thank you for save my project. haha :)
Thanks @mellim 👍
Thanks, for sharing
Saved my life
Helpful!
Thanks a lot. Solved my problem.
Thanks for this post. It actually helped a lot !
You saved my life Brother ! Lots of love <3
hi, why it doesnt work on custom domain?
This is really helpful! Permission to share on my dev page
Thank you. This solved my problem.
You sir are a life saver! Thank you!!!
Thanks man! It's works for me!
Thanks for sharing. This worked fine.
Awesome!
Sorted my issue and just started writing a well explained PR, by resolving this issue
Thank you Rajesh 🤝
Thank you soo much ! it work perfectly
Hello, I'm newbie of Netlify and use React JS for almost default frontend framework. This solution article is helpful. Thanks
hey there still not working
Saved me! thank you!
Thanks. It worked for me.
THANK YOU SO MUCH
Thank you very much
Thanks bro!! It worked