Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4297

How do I configure client side routing in Blazor WASM for subfolder in URL?

$
0
0

The issue I'm having is in my Blazor WASM application, is that when developing (dotnet watch) if whether a link inside the app, or manually entering URL (Example: http://localhost:5267/Contact) it navigates to the desired page with no issues.

However, when I deploy on Azure, I am able to navigate to the app (www.mywebsite.com) and navigate within the app using links in the navbar to other parts of the application, but if I manually enter the URL like above (Example: www.mywebsite.com/Contact), I receive a 404 error from azure, with nothing more in the console than :

Failed to load resource: the server responded with a status of 404 ()      Contact:1 

I have tried several solutions I found online including adding a web.config file in the root of my project, all to no avail.

Any help would be appreciated!

Also this is my first question, if there is more info I can share please let me know!


Viewing all articles
Browse latest Browse all 4297

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>