The navbar only updates when you navigate with the bar, so add functionality that decides from what page you are actually on. Options: bruke useLocation( ).path update each time the page is loaded in or something