fixes navbars search bar response to enter to correctly link