I have always learned that you need a server to use Angular PathLocationStrategy for the routing to work. Without a server, for example when hosting as static website in Azure storage account, you need to use HashLocationStrategy.
I gave it a try to get it working without a server, and to my surprise everything seems to be working. Am I missing something?
Setup:
- Angular 14 application using PathLocationStrategy.
- Hosted in Azure storage account, $web blob container, static website enabled.
- Azure CDN with endpoint of origin type storage static website.
- The endpoint Rule Engine has a rule that rewrites all to destination /index.html.