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

NavLink updating URL but does not reloading page in Blazor

$
0
0

I have a ProjectBase.razor page that is used to create, view & edit projects. The following routes all take you to this page:

/project/view/{projNum}/project/create//project/edit/{projNum}

I also have a Navlink in my navigation menu that allows you to create a new project:

<NavLink class="nav-link" href="/Project/Create" Match="NavLinkMatch.All"><span aria-hidden="true">New Project</span></NavLink>

If I click on that link while on the view/edit features of the same page, the URL changes to "/Project/Create," but the page itself doesn't refresh or reload. Is there a way to force this through the NavLink? Or do I need to add an OnClick function to do this?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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