
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 😀
love u
This is very helpful, thank you!
You are doing god's work
heheheh 😄
thanks a lot man
life saver!, thanks for this, i spent days researching this issue and was about to give up
Thank you so much for this fix. This is a really useful tip.
I had the same issue and it worked for me. Thank you man!
Thanks man :)
you're welcome 😀
Thanks 🙏
You saved me!! Thank you so much!!!
Thanks a lot, man!
You are a live saver my man
Thank you! That was what I needed.
this worked for me! thank you :-)
Arigato !!
Thank you. Simple & effective
Wow! Thanks a lot man!
Thanks! Worked awesome.
I had missed the note to add
_redirects
topublic/
folder. Fixed and good!Hey, Rajesh! You helped me a lot! Thank you very much!
very helpful
You are a life saver!!! Thanks from the bottom of my heart <3
Your welcome sir 😉
It works. Thanks!
You are the best!
It worked! Thanks, really good explanation.
You sir are a life saver! Thank you!!!
It's working! Thanks Rajesh.
Helpful!
That worked!, Thanks a lot man
Thanks man 🙏🙏🙏
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 for this concise solution. It saved me quite a lot of time!
Saved my life
This is really helpful! Permission to share on my dev page
thanks Rajesh, perfect answer
Thanks man!
Thank you. This solved my problem.
I have been looking everywhere for a solution thank you!
thank you for save my project. haha :)
Thanks, for sharing
Thanks a lot. Solved my problem.
hi, why it doesnt work on custom domain?
You saved my life Brother ! Lots of love <3
Thanks for this post. It actually helped a lot !
Thanks @mellim 👍
thanks
Thank you very much Rajesh ⭐
Thank you very much
Thanks. It worked for me.
Thanks bro!! It worked
Thank you soo much ! it work perfectly
Thanks man! It's works for me!
THANK YOU SO MUCH
hey there still not working
Awesome!
Sorted my issue and just started writing a well explained PR, by resolving this issue
Thank you Rajesh 🤝
Saved me! thank you!
Hello, I'm newbie of Netlify and use React JS for almost default frontend framework. This solution article is helpful. Thanks
Thanks for sharing. This worked fine.