I have an Angular application hosted in Azure. Users want to open the app by pasting a specific URL to the browser (https://somehosting.com/myapp/product/detail/123) but it can’t be opened that way it redirects to https://somehosting.com not even https://somehosting.com/myapp.
If I paste in a browser https://somehosting.com/myapp it can be opened but if I paste the full URL with the product ID it can’t be opened. Has anyone encountered such a problem? Any help would be appreciated

In the past I run into similar issue. If you are using Azure web apps, I would use a web.config file. This solved my issue last time. Add this web.config file to the root of your application. This sets the rewriting rules for IIS to '/'.
That config should looks like this
That url should be reflected by href inside your index.html.Make sure that the tag in your index.html is set correctly. Or if your application is hosted under /myapp, then you should set it to . This ensures that Angular's router knows the correct base path for all its routes.