Routing in Blazor WebAssembly

Learn how routing works in Blazor WebAssembly.

In Blazor WebAssembly, routing is handled on the client, not on the server. As we navigate in the browser, Blazor intercepts that navigation and renders the component with the matching route.

The URLs are resolved relative to the base path that is specified in the wwwroot/index.html file. It is specified in the head element using the following syntax:

Get hands-on with 1400+ tech skills courses.