Hide navbar when clicking on a link.