How to fix problem with Static Web Apps and React Routing?

Miroslav Turek 0 Reputation points
2025-01-07T19:35:29.0733333+00:00

Hello guys.

I have problem with Static Web Apps and probably with staticwebapp.config.json.

I have domain www.mypage.com and everything works fine until you do not try to refresh page eg. with address https://mypage.com/details/8. I already added

"navigationFallback": {  "rewrite": "/index.html"} but still not wotking.

Do you have any idea what I could try yet? Thanks for any advise.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,037 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.