DavidAJohn / BookwormsLendingLibrary

Blazor Server client UI with a .NET Web API backend for an imaginary online library.
https://bookwormslibrary.azurewebsites.net
6 stars 4 forks source link

Latest Additions & Most Popular navbar links problem #14

Closed DavidAJohn closed 3 years ago

DavidAJohn commented 3 years ago

If a user is already on the main books page, the navbar links to 'Latest Additions' and 'Most Popular' do not update the page, although the browser's URL changes.

This is because the Blazor router doesn't recognise that the page needs to be re-rendered if querystrings are used.

To get around this, the books page would need to be changed to look for parameters divided by forward slashes instead. An OnParametersSetAsync method can then be added to respond to the changing values.