Folk, I finally found a simple way of naming certain Url paths as exempt from Blazor Wasm routing. The Azure App Service has several virtual directories which work in the traditional way:
[image: image.png] However, if you deploy a Blazor Wasm app into the / root folder, then it installs a Web.config file into the root with the following rewrite rule that hijacks every request:: <rule name="Serve subdir"> <match url=".*" /> <action type="Rewrite" url="wwwroot\{R:0}" /> </rule> To allow the virtual directories to work as usual, insert rules like this before the previous one: <rule name="Skip Test1" stopProcessing="true"> <match url="cadmium" /> <action type="None" /> </rule> You can combine multiple <conditions> to make it less verbose. It took hours of reading and frustrating experiments to get those 4 lines of xml correct. Now...how do you alter the default Web.config that is deployed with the Blazor app so you don't have to edit it manually every time? *Greg K*