Chris Sainty 2/4/2020

Fragment Routing with Blazor

Read Original

This technical article explains how to implement fragment routing in Blazor, which is not supported out-of-the-box. It details the problems with Blazor's router ignoring URL fragments and the need for JavaScript to handle scrolling. The solution involves creating a JavaScript helper for smooth scrolling and a C# extension method for the NavigationManager to invoke it.

Fragment Routing with Blazor

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week