@Tim Northrop Aplogies for late response here! If you are still facing this issue you may want to know that the recommended way of dealing with SPA is to use the staticwebapp.config.json
file with the following content:
{
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/*.{ ADD_FILE_EXTENSIONS_HERE }"]
}
}
See an example for Angular: https://github.com/manekinekko/azure-static-web-apps-playground/blob/main/src/assets/staticwebapp.config.json
Refrence- https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#fallback-routes