Fragment Routing with Blazor
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser