Fix bug where refresh caused incorrect active_link behavior in navbar